#include<stdio.h>
int main()
{
int test,i,l,h,w;
scanf("%d",&test);
for(i=1;i<=test;i++)
{
scanf("%d%d%d",&l,&h,&w);
if((l>=1&&l<=50)&&(h>=1&&h<=50)&&(w>=1&&w<=50))
{
if(l<=20&&h<=20&&w<=20)
printf("Case %d: good\n",i);
else
printf("Case %d: bad\n",i);
}
}
return 0;
}
No comments:
Post a Comment