UVA 12372 - Packing for Holiday

UVA Sep 1, 2020

Problem PDF

Solution:

#include
int main()
{
    int a,b,c,t,i;
    while(scanf("%d",&t)==1)
    {
        for(i=1;i<=t;i++)
        {
            scanf("%d%d%d",&a,&b,&c);
            if(a<=20 && b<=20 && c<=20)
            printf("Case %d: good\n",i);
            else
            printf("Case %d: bad\n",i);
        }
    }
    return 0;
}
https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/12372/12372.cpp

Tags

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.