A|B超水
#include<stdio.h>
int main( )
{
int N,a,b;
scanf("%d",&N);
while(N--)
{
scanf("%d%d",&a,&b);
if(a%b==0)
printf("YES\n");
else
printf("NO\n");
}
return 0;
}
posted on 2011-04-29 22:27 more think, more gains 阅读(132) 评论(0) 收藏 举报
#include<stdio.h>
int main( )
{
int N,a,b;
scanf("%d",&N);
while(N--)
{
scanf("%d%d",&a,&b);
if(a%b==0)
printf("YES\n");
else
printf("NO\n");
}
return 0;
}
posted on 2011-04-29 22:27 more think, more gains 阅读(132) 评论(0) 收藏 举报