The7th Zhejiang Provincial Collegiate Programming Contest->Problem A:A - Who is Older?
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3322
可以看样例猜题意的水题。
1 #include<bits/stdc++.h> 2 using namespace std; 3 4 int main() { 5 int t; 6 cin>>t; 7 while(t--) { 8 int a1,a2,a3,b1,b2,b3; 9 cin>>a1>>a2>>a3>>b1>>b2>>b3; 10 if(a1<b1) 11 printf("javaman\n"); 12 else if(a1>b1) 13 printf("cpcs\n"); 14 else { 15 if(a2<b2) 16 printf("javaman\n"); 17 else if(a2>b2) 18 printf("cpcs\n"); 19 else { 20 if(a3<b3) 21 printf("javaman\n"); 22 else if(a3>b3) 23 printf("cpcs\n"); 24 else 25 printf("same\n"); 26 } 27 } 28 } 29 return 0; 30 }
我会一直在