Wednesday, 18 November 2015

UVA 12372 - Packing for Holiday_Solution

/*
Tanzila Islam
Southeast University
mail : tanzilamohita@gmail.com
Problem Link:
https://uva.onlinejudge.org/external/123/p12372.pdf
*/
#include <iostream>
#include<stdio.h>
using namespace std;

int main() {
    int t;
    int cases =0;
    cin >> t;
    while (t--){
        int l,h,w;
        cin >> l >> w >> h;
          printf ("Case %d: ", ++cases);
        if(l<=20 && w<=20 && h<=20){
            cout << "good" << endl;
        }
        else {
            cout << "bad" << endl;
        }
        
    }
 
 return 0;
}

No comments:

Post a Comment