Advertisement
otot957

Untitled

Aug 5th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include <iostream>
  2. #include<array>
  3. #include <bits/stdc++.h>
  4. #include<string>
  5. using namespace std;
  6. int main ()
  7.  
  8.  
  9.  
  10. {
  11.     int n=0,l,w,h,k=0;
  12.     cin>>n;
  13.     while(n!=0){
  14.             k++;
  15.             cin>>l>>w>>h;
  16.             if(l<=20 && w<=20 && h<=20)
  17.                 cout<<"Case "<<k<<": good"<<endl;
  18.             else cout<<"Case "<<k<<": bad"<<endl;
  19.  
  20.         n--;
  21.     }
  22.  
  23.  
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement