日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

ZOJ 3776 A - Pokemon Master 签到水题

發布時間:2025/5/22 37 豆豆
生活随笔 收集整理的這篇文章主要介紹了 ZOJ 3776 A - Pokemon Master 签到水题 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

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; }

轉載于:https://www.cnblogs.com/Yumesenya/p/6647677.html

《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀

總結

以上是生活随笔為你收集整理的ZOJ 3776 A - Pokemon Master 签到水题的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。