比赛 |
20161115 |
评测结果 |
WWWWWWWWWW |
题目名称 |
取石块儿 |
最终得分 |
0 |
用户昵称 |
123 |
运行时间 |
1.318 s |
代码语言 |
C++ |
内存使用 |
0.31 MiB |
提交时间 |
2016-11-15 11:47:16 |
显示代码纯文本
- #include <iostream>
- #include <cmath>
- #include <cstdio>
- #include <cstdlib>
- #include <vector>
- #include <algorithm>
- using namespace std;
- int main(){
- freopen ("tstones.in","r",stdin);
- freopen ("tstones.out","w",stdout);
- int a,b,c,d,e,f,g,n;
- cin>>n;
- for(a=1;a<=n;a++)
- {
- cin>>b>>c;
- if(c>=b)
- {
- cout<<"NO"<<endl;
- continue;
- }
- d=(b%c)%2;
- if(d==0)
- cout<<"YES";
- if(d==1)
- cout<<"NO";
- cout<<endl;
- }
- return 0;
- }
-