hdu_1014(竟然真的还有更水的)

注意输出就没了。。。

 1 #include<cstdio>
 2 #include<cstring>
 3 using namespace std;
 4 int gcd(int a, int b)
 5 {
 6     return b==0?a:gcd(b,a%b);
 7 }
 8 int main()
 9 {
10     int s,m;
11     while(~scanf("%d%d",&s,&m))
12     {
13         if(gcd(s,m)==1) printf("%10d%10d    Good Choice

",s,m);
14         else printf("%10d%10d    Bad Choice

",s,m);
15     }
16     return 0;
17 }
原文地址:https://www.cnblogs.com/shanyr/p/6662046.html