标签:include wol turn while int problem ios logs pid
HDU 1222: Wolf and Rabbit
///@author Sycamore, ZJNU
///@accepted_on 2017-01-24
#include<iostream>
using namespace std;
unsigned gcd(unsigned a, unsigned b) { return b == 0 ? a : gcd(b, a % b); }
int main()
{
int P;
cin >> P;
while (P--)
{
unsigned M, N;
cin >> M >> N;
cout << (gcd(M, N) == 1 ? "NO" : "YES") << endl;
}
return 0;
}
标签:include wol turn while int problem ios logs pid
原文地址:http://www.cnblogs.com/zjnu/p/7248084.html