The 11th Zhejiang Provincial Collegiate Programming Contest->Problem A:A - Pokemon Master
来源:互联网 发布:淘宝靠谱的法国代购 编辑:程序博客网 时间:2024/06/11 08:37
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 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 12th Zhejiang Provincial Collegiate Programming Contest - A
- The 11th Zhejiang Provincial Collegiate Programming Contest->Problem G:G - Ternary Calculation
- 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 7th Zhejiang Provincial Collegiate Programming Contest->Problem B:B - Somali Pirates
- The 7th Zhejiang Provincial Collegiate Programming Contest->Problem G:G - Wu Xing
- The 9th Zhejiang Provincial Collegiate Programming Contest->Problem D:D - Draw Something Cheat
- The7th Zhejiang Provincial Collegiate Programming Contest->Problem A:A - Who is Older?
- 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
- mysql数据主从同步失败解决方案
- The7th Zhejiang Provincial Collegiate Programming Contest->Problem A:A - Who is Older?
- The 7th Zhejiang Provincial Collegiate Programming Contest->Problem B:B - Somali Pirates
- The 7th Zhejiang Provincial Collegiate Programming Contest->Problem G:G - Wu Xing
- 从一个Activity向另一个Activity中的Fragment传递参数
- The 11th Zhejiang Provincial Collegiate Programming Contest->Problem A:A - Pokemon Master
- The 11th Zhejiang Provincial Collegiate Programming Contest->Problem G:G - Ternary Calculation
- The 9th Zhejiang Provincial Collegiate Programming Contest->Problem A:A - Taxi Fare
- The 9th Zhejiang Provincial Collegiate Programming Contest->Problem D:D - Draw Something Cheat
- The 9th Zhejiang Provincial Collegiate Programming Contest->Problem :K-Yet Another Story of Rock-pap
- 【BZOJ1930】[Shoi2003]pacman 吃豆豆【最大费用最大流】
- Educational Codeforces Round 11
- 统计学习笔记(1)——统计学习方法概论
- 腾讯的一笔画游戏