The 11th Zhejiang Provincial Collegiate Programming Contest->Problem A:A - Pokemon Master
来源:互联网 发布:成都市网络理政平台 编辑:程序博客网 时间:2024/06/10 22:14
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3776
题意:比较两组数据的总和大小。
#include <iostream>using namespace std;int main() { int t; cin>>t; while(t--) { int n,m,s1=0,s2=0,a[6],b[6]; cin>>n>>m; for(int i=0; i<n; i++) { cin>>a[i]; s1+=a[i]; } for(int i=0; i<m; i++) { cin>>b[i]; s2+=b[i]; } if(s1>s2) printf("Calem\n"); else if(s1<s2) printf("Serena\n"); else printf("Draw\n"); } return 0;}
0 0
- The 11th Zhejiang Provincial Collegiate Programming Contest->Problem A:A - Pokemon Master
- The 11th Zhejiang Provincial Collegiate Programming Contest->Problem A:A - Pokemon Master
- The 12th Zhejiang Provincial Collegiate Programming Contest - A
- The 6th Zhejiang Provincial Collegiate Programming Contest->Problem I:A Stack or A Queue?
- The 9th Zhejiang Provincial Collegiate Programming Contest->Problem A:A - Taxi Fare
- The 6th Zhejiang Provincial Collegiate Programming Contest->Problem I:A Stack or A Queue?
- The 9th Zhejiang Provincial Collegiate Programming Contest->Problem A:A - Taxi Fare
- The 11th Zhejiang Provincial Collegiate Programming Contest---Talented Chef
- The 11th Zhejiang Provincial Collegiate Programming Contest
- The 11th Zhejiang Provincial Collegiate Programming Contest
- The 11th Zhejiang Provincial Collegiate Programming Contest
- The 11th Zhejiang Provincial Collegiate Programming Contest
- The 11th Zhejiang Provincial Collegiate Programming Contest
- The 8th Zhejiang Provincial Collegiate Programming Contest / A - Ordinal Numbers
- The 8th Zhejiang Provincial Collegiate Programming Contest->A - Ordinal Numbers
- The 14th Zhejiang Provincial Collegiate Programming Contest Sponsored by TuSimple(A+B+C+D)
- ZOJ-The 14th Zhejiang Provincial Collegiate Programming Contest Sponsored by TuSimple-A~B
- The 11th Zhejiang Provincial Collegiate Programming Contest->Problem G:G - Ternary Calculation
- 005_Http之request获取客户端信息08-编码之request编码-url编码
- 两个mysql的函数
- Mysql比较操作符概述
- 经常被使用的MySQL函数
- jxl读excel
- The 11th Zhejiang Provincial Collegiate Programming Contest->Problem A:A - Pokemon Master
- PowerDesigner根据PhysicalDiagram产生数据库--连接mysql
- Ant入门教程
- Java模板引擎Velocity基本语法
- Win7系统Oracle11g服务端和客户端连接数据库配置
- Spirng MVC中常用的注解
- 对项目开发中的一点感悟
- 读ibatis源码—为什么说SqlMapClient是线程安全的
- java应用命名规范(自己总结的哈)