| 记录编号 | 350005 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 2546.取石块儿 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 1.927 s | ||
| 提交时间 | 2016-11-15 14:59:08 | 内存使用 | 0.31 MiB | ||
#include<cstdio>
#include<iostream>
using namespace std;
typedef unsigned long long ull;
int main()
{
freopen("tstones.in","r",stdin);
freopen("tstones.out","w",stdout);
ull n,k,t;
cin>>t;
while(t--)
{
cin>>n>>k;
if(n%(k+1)) cout<<"NO"<<endl;
else cout<<"YES"<<endl;
}
return 0;
}