UVa: 12372 (Packing for Holiday)



// link: http://uva.onlinejudge.org/external/123/12372.html
// Runtime: 0.012s

#include <cstdio>

using namespace std;

int main ()
{
    int testCases;

    scanf ("%d", &testCases);

    int cases = 0;

    while ( testCases-- ) {

        int l, w, h;

        scanf ("%d %d %d", &l, &w, &h);

        printf ("Case %d: ", ++cases);

        if (l <= 20 && w <= 20 && h <= 20) printf ("good");
        else printf ("bad");

        printf ("\n");
    }


}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s