OJ-Problems-Source/HDOJ/2075_autoAC.cpp

15 lines
312 B
C++
Raw Normal View History

#include<stdio.h>
int main()
{
long int a,b;
int n;
scanf("%d",&n);
while(n--)
{
scanf("%ld%ld",&a,&b);
if(a<b) printf("NO\n");
else if(a%b==0) printf("YES\n");
else printf("NO\n");
}
}