http://acm.hdu.edu.cn/showproblem.php?pid=2075

不要被水题给吓着了!

用__int64 格式就过了!唉……

2010-10-20 19:51:41 Accepted 2075 0MS 208K 204 B G++ rll
代码
#include<stdio.h>
int main()
{
__int64 ncase,a,b;
scanf(
"%I64d",&ncase);
while(ncase--)
{
scanf(
"%I64d%I64d",&a,&b);
if(a%b==0)printf("YES\n");
else printf("NO\n");
}
return 0;
}

 

posted on 2010-10-20 19:56  role  阅读(244)  评论(0编辑  收藏  举报