ACM2075_A/B

#include<iostream>
int main()
{
    using namespace std;
    int i,j,count;
    cin>>count;
    while(count--)
    {
        cin>>i>>j;
        if(!(i%j))
            cout<<"YES"<<endl;
            else 
                cout<<"NO"<<endl;
    }
    return 0;
}
原文地址:https://www.cnblogs.com/orangebook/p/3186563.html