HDU-2075 A|B?
HDU-2075 A|B?

代码

#include <iostream>

using namespace std;

int main() {

	int T;
	cin>>T;
	for(int i=0; i<T; i++) {
		int A, B;
		cin>>A>>B;
		if(A%B==0){
			cout<<"YES"<<endl;
		}
		else{
			cout<<"NO"<<endl;
		}
	}

	return 0;
}

注解

1、水题,没的说。

结果

HDU-2075 A|B?

相关文章: