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