#include<stdio.h>
int main()
{
int s,step,mod,i;
while(scanf("%d%d",&step,&mod)==2)
{
s=0;i=0;
while(1)
{
i++;
s=(s+step)%mod;
if(s==0)
break;
}
if(i==mod)
printf("%10d%10d Good Choice\n\n",step,mod);
else
printf("%10d%10d Bad Choice\n\n",step,mod);
}
return 0;
}
int main()
{
int s,step,mod,i;
while(scanf("%d%d",&step,&mod)==2)
{
s=0;i=0;
while(1)
{
i++;
s=(s+step)%mod;
if(s==0)
break;
}
if(i==mod)
printf("%10d%10d Good Choice\n\n",step,mod);
else
printf("%10d%10d Bad Choice\n\n",step,mod);
}
return 0;
}
版权声明:本文为u010372095原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。