Thursday, January 28, 2016

UVA 12372 | | Packing for Holiday

#include<bits/stdc++.h>
using namespace std;
int main()
{
    
    int a , b , c,t,cse=0;
    cin>>t;
    while(t--){
        cin>>a>>b>>c;
        if(a>20||b>20||c>20)
            cout<<"Case "<<++cse<<": "<<"bad"<<endl;
        else
           cout<<"Case "<<++cse<<": "<<"good"<<endl; 
    }
    
    return 0;
}

No comments:

Post a Comment