| 比赛 | 20161115 | 评测结果 | AAAAAAAAAA |
|---|---|---|---|
| 题目名称 | 取石块儿 | 最终得分 | 100 |
| 用户昵称 | 夕见ai | 运行时间 | 0.521 s |
| 代码语言 | C++ | 内存使用 | 0.26 MiB |
| 提交时间 | 2016-11-15 10:00:48 | ||
#include<cstdio>
using namespace std;
unsigned long long t,n,k;
int main(){
freopen("tstones.in","r",stdin);
freopen("tstones.out","w",stdout);
scanf("%lld",&t);
unsigned long long i,r;
for(i=1;i<=t;i++){
scanf("%lld%lld",&n,&k);
r=n%(k+1);
if(!r)printf("YES\n");
if(r)printf("NO\n");
}
return 0;
}