标签:else using clu class std bsp bad cstring blog
注意输出就没了。。。
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\n\n",s,m); 14 else printf("%10d%10d Bad Choice\n\n",s,m); 15 } 16 return 0; 17 }
标签:else using clu class std bsp bad cstring blog
原文地址:http://www.cnblogs.com/shanyr/p/6662046.html