The7th Zhejiang Provincial Collegiate Programming Contest->Problem A:A

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
");
12         else if(a1>b1)
13             printf("cpcs
");
14         else {
15             if(a2<b2)
16                 printf("javaman
");
17             else if(a2>b2)
18                 printf("cpcs
");
19             else {
20                 if(a3<b3)
21                     printf("javaman
");
22                 else if(a3>b3)
23                     printf("cpcs
");
24                 else
25                     printf("same
");
26             }
27         }
28     }
29     return 0;
30 }
我会一直在
原文地址:https://www.cnblogs.com/zhien-aa/p/5221981.html