您的位置:首页 > 其它

The7th Zhejiang Provincial Collegiate Programming Contest->Problem A:A - Who is Older?

2016-02-26 22:29 501 查看
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3322

可以看样例猜题意的水题。

#include<bits/stdc++.h>
using namespace std;

int main() {
int t;
cin>>t;
while(t--) {
int a1,a2,a3,b1,b2,b3;
cin>>a1>>a2>>a3>>b1>>b2>>b3;
if(a1<b1)
printf("javaman\n");
else if(a1>b1)
printf("cpcs\n");
else {
if(a2<b2)
printf("javaman\n");
else if(a2>b2)
printf("cpcs\n");
else {
if(a3<b3)
printf("javaman\n");
else if(a3>b3)
printf("cpcs\n");
else
printf("same\n");
}
}
}
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: