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