| 比赛 | 20161115 | 评测结果 | AAAAAAAAAA |
|---|---|---|---|
| 题目名称 | 取石块儿 | 最终得分 | 100 |
| 用户昵称 | Mealy | 运行时间 | 0.227 s |
| 代码语言 | C++ | 内存使用 | 0.28 MiB |
| 提交时间 | 2016-11-15 09:11:46 | ||
/*
2546. 取石块儿
tstones.in
*/
#include <iostream>
#include <cstdio>
using namespace std;
typedef unsigned long long ull;
int T;
ull n,k;
int main()
{
freopen("tstones.in","r",stdin);
freopen("tstones.out","w",stdout);
scanf("%d",&T);
while(T)
{
T--;
scanf("%llu%llu",&n,&k);
if(n%(k+1)==0)
{
printf("YES\n");
}
else
{
printf("NO\n");
}
}
return 0;
}