hdu 3752 Is the one been second-killed first?
2013-02-14 20:58
309 查看
题意:每个小孩要拿到偶数克蛋糕,不一定每个小孩拿到的一样多
#include<iostream> using namespace std; int main() { int n; scanf("%d", &n); while(n--) { int a, b; scanf("%d%d", &a, &b); if(a % 2 == 1|| b > a / 2) printf("NO\n"); else printf("YES\n"); } return 0; }
相关文章推荐
- HDU 3752 Is the one been second-killed first?
- hdu 3752 Is the one been second-killed first? 菜鸟杯
- [3752]:Is the one been second-killed first?
- 杭电ACM HDU 3752 Is the one been second-killed first?
- [面试题]Amazon: Given two binary trees,if the first tree is subtree of the second one
- Science Says This Is How to Make the Perfect First Impression You only get one chance for a first i
- Find the first minimum number and the second one.
- Get a first life in the second one
- HDU 4627 There are many unsolvable problem in the world.It could be about one or about zero.But this time it is about bigger number.
- You Are the One - HDU 4283 dp
- The one who can give anything you want is only yourself. The rating is the only you should pursue.
- One or more breakpoints cannot be set and have been disable.Execution will stop at the begining of the programe
- Mysql错误:The server time zone value is unrecognized or represents more than one time zone
- 数据库连接 The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone.
- The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone
- HDU 4283 You Are the One ★(进出栈的括号匹配性质:区间DP)
- this is the first blog.
- Class JavaLaunchHelper is implemented in both … libinstrument.dylib. One of the two will be used. Wh
- Class JavaLaunchHelper is implemented in both … libinstrument.dylib. One of the two will be used. Wh
- HDU 4283 You Are the One (区间DP)