您的位置:首页 > 其它

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;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐