| 记录编号 | 350171 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 2546.取石块儿 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 1.770 s | ||
| 提交时间 | 2016-11-15 16:30:04 | 内存使用 | 0.28 MiB | ||
//tstones.cpp
//By Hoohan
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
freopen("tstones.in","r",stdin);
freopen("tstones.out","w",stdout);
unsigned long long t,n,k; cin>>t;
for(unsigned long long i=0;i<t;i++){
cin>>n>>k;
if(n % (k+1) == 0) printf("YES\n");
else printf("NO\n");
}
return 0;
}