The7th Zhejiang Provincial Collegiate Programming Contest->Problem A:A - Who is Older?
2016-07-14 17:46
375 查看
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; }
相关文章推荐
- The 6th Zhejiang Provincial Collegiate Programming Contest->ProblemK:K-Nice
- The 6th Zhejiang Provincial Collegiate Programming Contest->Problem I:A Stack or A Queue?
- Java-break和continue
- The 6th Zhejiang Provincial Collegiate Programming Contest->ProblemF:80ers' Memory
- The 6th Zhejiang Provincial Collegiate Programming Contest->ProblemB:Light Bulb
- The 6th Zhejiang Provincial Collegiate Programming Contest->ProblemA:Second-price Auction
- 剑指offer之面试题22:栈的压入、弹出序列
- Tomcat 7.0 安装 虚拟目录 虚拟主机讲解
- 使用C#验证IOS9产生的ECDSA签名
- Redis安装入门
- The 5th Zhejiang Provincial Collegiate Programming Contest------ProblemA:Accurately Say "CocaCola"!
- jquery发送Ajax(POST方法)
- 文件删除需要管理员权限
- 更新驱动后,Aero特效消失
- 网桥 路由器 网关
- PHP 调用IE执行程序
- The dependency `****` is not used in any concrete target问题解决方案
- javax.json JSON字符串操作
- 阿里云RDS PG实践-阿里云栖-专题视频课程
- javascript判断机器是否联网的2种方法