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; }
不要让今天成为明天的遗憾!
#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; }