| 比赛 | 20161115 | 评测结果 | AAAAAAAAAA |
|---|---|---|---|
| 题目名称 | 取石块儿 | 最终得分 | 100 |
| 用户昵称 | zihahahaha | 运行时间 | 1.967 s |
| 代码语言 | C++ | 内存使用 | 0.28 MiB |
| 提交时间 | 2016-11-15 08:50:14 | ||
#include<cstdio>
#include<iostream>
#include<algorithm>
#include<cstring>
using namespace std;
typedef unsigned long long ULL;
ULL t;
int main()
{
freopen("tstones.in","r",stdin);
freopen("tstones.out","w",stdout);
ULL n,k;
cin>>t;
for(int i=1;i<=t;i++)
{
cin>>n>>k;
if(!(n%(k+1))) cout<<"YES"<<'\n';
else cout<<"NO"<<'\n';
}
return 0;
}