hdu1014

2018-06-04 10:59:24 浏览数 (1)

#include <stdio.h>

int gcd(int a, int b) { int t; while(t=a%b) { a=b; b=t; } return b; }

int main(void) { int s,m,i; while(scanf("%d %d", &s, &m)!=EOF) { printf("dd",s,m); if(gcd(s,m)==1) { printf(" Good Choicenn"); } else { printf(" Bad Choicenn"); } } return 0; }

0 人点赞