#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; }
转载于:https://www.cnblogs.com/orangebook/p/3186563.html