| 比赛 | 20161115 | 评测结果 | AAAAAAAAAT |
|---|---|---|---|
| 题目名称 | 取石块儿 | 最终得分 | 90 |
| 用户昵称 | 残星噬月 | 运行时间 | 4.474 s |
| 代码语言 | C++ | 内存使用 | 0.25 MiB |
| 提交时间 | 2016-11-15 11:41:16 | ||
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int t;
freopen("tstones.in","r",stdin);
freopen("tstones.out","w",stdout);
cin>>t;
for(int i=0;i<t;i++)
{
long long n,k;
cin>>n>>k;
if(n%(k+1)==0)cout<<"YES"<<endl;
//cout<<n%(k+1)<<endl;
else cout<<"NO"<<endl;
}
return 0;
}