Sunday, April 24, 2016

UVA 12372: Packing for Holiday -Solution

Unknown
#include <stdio.h>
int main()
{
    int t,c=1,l,w,h;
    scanf("%d",&t);
    while (t--)
    {
        scanf("%d%d%d",&l,&w,&h);
        if (l>20 || w>20 || h>20)
            printf("Case %d: bad\n",c++);
        else
            printf("Case %d: good\n",c++);
    }
    return 0;
}

Unknown

Studying at Shahjalal University of Science and Technology, Sylhet.

0 comments:

Post a Comment

Coprights @ 2016,