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;
}

 

posted @ 2013-07-12 16:27  Talbot3  阅读(195)  评论(0编辑  收藏  举报