标签:
Time Limit: 10000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 3970 Accepted Submission(s): 1884
#include <stdio.h> using namespace std; int gcd(int a,int b){ return b==0?a:gcd(b,a%b); } int main() { int n,m; while(scanf("%d%d",&n,&m)!=EOF,n!=-1&&m!=-1){ if(gcd(n,m)!=1) printf("POOR Haha\n"); else printf("YES\n"); } return 0; }
标签:
原文地址:http://www.cnblogs.com/liyinggang/p/5524960.html