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() { int t,l,w,h; int c=1; cin>>t; while(t--) { cin>>l>>w>>h; if(l>20 || w>20 || h>20) cout<<"Case "<<c++<<": bad\n"; else cout<<"Case "<<c++<<": good\n"; } return 0; } |