杭电OJ-2104_hide handkerchief超简洁代码

#include<iostream>
using namespace std;
int n, m;;
int zz(int a, int b)
{
	return b==0 ? a: zz(b, a%b);
}
int main()
{
	while (cin >> n >> m&&n != -1 && m != -1)
		cout << (nb(n, m) == 1 ? "YES" : "POOR Haha") << endl;
}


posted @ 2015-08-11 19:14  A_yes  阅读(226)  评论(0编辑  收藏  举报