| 比赛 | 20161115 | 评测结果 | AAAAAAAAAA |
|---|---|---|---|
| 题目名称 | 取石块儿 | 最终得分 | 100 |
| 用户昵称 | Hoohan(%Dalao) | 运行时间 | 1.751 s |
| 代码语言 | C++ | 内存使用 | 0.31 MiB |
| 提交时间 | 2016-11-15 09:12:04 | ||
//tstones.cpp
//By Hoohan
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
freopen("tstones.in","r",stdin);
freopen("tstones.out","w",stdout);
unsigned long long t,n,k; cin>>t;
for(unsigned long long i=0;i<t;i++){
cin>>n>>k;
if(n % (k+1) == 0) printf("YES\n");
else printf("NO\n");
}
return 0;
}