Skip to content

Instantly share code, notes, and snippets.

@shakir1443
Created November 16, 2017 11:03
Show Gist options
  • Save shakir1443/59bcbb7f500e192dbf04e3d982a70db1 to your computer and use it in GitHub Desktop.
Save shakir1443/59bcbb7f500e192dbf04e3d982a70db1 to your computer and use it in GitHub Desktop.
ACM Problem Solutions
/******************************************************************************
Author : Abdul Alim Shakir
*******************************************************************************/
#include <stdio.h>
int main()
{
int t,n;
scanf("%d",&t);
int count=1;
while(t--)
{
scanf("%d %d %d",&l,&w,&h);
if(h<=20 && w<=20 && l<=20)
{
printf("Case %d: good\n",count);
}
else
{
printf("Case %d: bad\n",count);
}
count++;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment