这种题应该没人去看题解,太水了
#include <iostream>
#include <cstdio>
#include <cstring>
#include <string>
#include <algorithm>
using namespace std;
int main()
{
int i,j,num;
scanf("%d",&num);
while(num--)
{
int a,b;
scanf("%d %d",&a,&b);
if(a % b == 0)
printf("YES\n");
else
printf("NO\n");
}
return 0;
}