1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #include<iostream> using namespace std; int main() { long long n,i,a,b,c; cin>>n; for(i=0; i<n; i++) { cin>>a>>b>>c; if(a<=20 && b<=20 && c<=20) { cout<<"Case "<<i+1<<": good"<<endl; } else { cout<<"Case "<<i+1<<": bad"<<endl; } } } |
Thursday, March 3, 2016
UVA 12372
Labels:
UVA Solution
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Thank you for commenting. Please wait for response :)