mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
15 lines
312 B
C++
15 lines
312 B
C++
|
#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");
|
||
|
}
|
||
|
}
|