| 记录编号 | 381024 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 2546.取石块儿 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 3.656 s | ||
| 提交时间 | 2017-03-10 19:28:55 | 内存使用 | 0.31 MiB | ||
#include<iostream>
#include<cstdio>
using namespace std;
int main ()
{
freopen("tstones.in","r",stdin);
freopen("tstones.out","w",stdout);
long long T;
cin>>T;
for(long long i=1;i<=T;i++)
{
long long n,k;
cin>>n>>k;
if(n%(k+1)==0)
cout<<"YES";
else
cout<<"NO";
}
}