http://acm.hdu.edu.cn/showproblem.php?pid=2075
#include <bits/stdc++.h>
using namespace std;
int main()
{
int T;
cin>>T;
for(int i=1;i<=T;i++)
{
int A,B;
cin>>A>>B;
if(A%B==0)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
}
return 0;
}
原文:https://www.cnblogs.com/zlrrrr/p/9226198.html