#include<iostream>
using namespace std;
int main()
{int a,b;int t;cin>>t;while(t--){cin>>a>>b;if(a%b==0)cout<<"YES"<<endl;else cout<<"NO"<<endl;}return 0;
}
详细解决方案
hdu 2075 A|B?
热度:10 发布时间:2023-12-04 20:18:31.0
#include<iostream>
using namespace std;
int main()
{int a,b;int t;cin>>t;while(t--){cin>>a>>b;if(a%b==0)cout<<"YES"<<endl;else cout<<"NO"<<endl;}return 0;
}