Vasya the Hipster
来源:互联网 发布:如何提高mac下载速度 编辑:程序博客网 时间:2024/06/07 06:15
題目鏈接
本題屬於簡單的implementation。
有
1. 儘量穿異色襪子,最多能穿多少天的異色襪子。即穿的時候需保證兩種顏色都有,
2. 儘量穿異色襪子的條件下,沒異色襪子穿之後,要穿多少天的同色襪子。
#include<bits/stdc++.h>using namespace std;main(){ int a,b; cin >> a >> b; int c = min(a,b); cout << c << " " << (a+b-2*c)/2 << endl;}
阅读全文
0 0
- A. Vasya the Hipster
- Vasya the Hipster
- Codeforces Vasya the Hipster
- CodeForces 581A Vasya the Hipster
- Codeforces Round #322 A Vasya the Hipster
- Codeforces Round #322 (Div. 2)A. Vasya the Hipster
- Code Forces 581 A. Vasya the Hipster(水~)
- CodeForces - 581A Vasya the Hipster (水)
- codeforces——581A——Vasya the Hipster
- CodeForces 581A Vasya the Hipster(简单题)——Codeforces Beta Round #322 (Div. 2)
- Vasya and the Bus
- Vasya and the Bus
- A. Vasya and the Bus
- A. Vasya and the Bus
- CF190A:Vasya and the Bus(易错题)
- <Codeforces Beta Round #38> D. Vasya the Architect
- HOJ 10444 The milliard Vasya's function(简单背包)
- hnu 10444 The milliard Vasya's function(母函数)
- 操作系统实验报告 lab5
- 手把手入门神经网络系列(2)_74行代码实现手写数字识别
- Kryo官方文档-中文翻译
- 微信OAuth2网页授权登陆接口
- matlab用穷举法解决问题
- Vasya the Hipster
- UVA 1610 Party Games
- Unity 游戏框架搭建 (十) QFramework v0.0.2小结
- 三维数组倒序
- 机器学习与人工智能资源,等待更新
- 几种IO流读写文件
- 立体匹配---立体匹配过程
- 深入浅出MyBatis-Configuration
- Matrix-Tree定理(1)----矩阵的行列式