ZOJ 3776 A - Pokemon Master 签到水题
生活随笔
收集整理的這篇文章主要介紹了
ZOJ 3776 A - Pokemon Master 签到水题
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
link
求和比大小...
?
/** @Date : 2017-03-23-21.26* @Author : Lweleth (SoungEarlf@gmail.com)* @Link : https://github.com/* @Version :*/ #include<bits/stdc++.h> #define LL long long #define PII pair #define MP(x, y) make_pair((x),(y)) #define fi first #define se second #define PB(x) push_back((x)) #define MMG(x) memset((x), -1,sizeof(x)) #define MMF(x) memset((x),0,sizeof(x)) #define MMI(x) memset((x), INF, sizeof(x)) using namespace std;const int INF = 0x3f3f3f3f; const int N = 1e5+20; const double eps = 1e-8;int main() {int T;while(cin >> T){while(T--){int n, m;cin >> n >> m;LL s1 = 0, s2 = 0;LL x;for(int i = 0; i < n; i++){cin >> x;s1 += x;}for(int i = 0; i < m; i++){cin >> x;s2 += x;}if(s1 > s2)printf("Calem\n");else if(s1 < s2)printf("Serena\n");else printf("Draw\n");}}return 0; }轉(zhuǎn)載于:https://www.cnblogs.com/Yumesenya/p/6647677.html
《新程序員》:云原生和全面數(shù)字化實(shí)踐50位技術(shù)專家共同創(chuàng)作,文字、視頻、音頻交互閱讀總結(jié)
以上是生活随笔為你收集整理的ZOJ 3776 A - Pokemon Master 签到水题的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 城市天际线thegamecrashedt
- 下一篇: 哈弗h6为什么卖的那么好?