| 记录编号 | 349881 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 2546.取石块儿 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.227 s | ||
| 提交时间 | 2016-11-15 12:38:08 | 内存使用 | 0.31 MiB | ||
#include<cstdio>
#include<iostream>
#include<algorithm>
using namespace std;
const int maxn=1000000+10;
unsigned long long n ,k;
int tk;
bool book;
int main()
{
freopen("tstones.in", "r", stdin);
freopen("tstones.out", "w", stdout);
int i, j;
cin>>tk;
for(i=1; i<=tk; i++)
{
scanf("%llu%llu", &n, &k);
printf("%s\n",n%(k+1)?"NO":"YES");
}
return 0;
}