摘要: A 中奖 结构体排序就好了,我是用 pair ,存相反数 #include<bits/stdc++.h> using namespace std; int read() { int x = 0, f = 1, ch = getchar(); while ((ch < '0' || ch > '9') 阅读全文
posted @ 2022-07-05 19:10 PHarr 阅读(49) 评论(0) 推荐(0) 编辑
摘要: A. Division? a题就是简单的if语句就好了 n = int(input()) for i in range(n): x = int(input()) if x <= 1399: print("Division 4") elif x <= 1599: print("Division 3") 阅读全文
posted @ 2022-07-05 19:07 PHarr 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 20220701 SMU&CUIT友谊赛(题目来源2021ccpc女生赛) 阅读全文
posted @ 2022-07-05 16:02 PHarr 阅读(48) 评论(0) 推荐(0) 编辑
摘要: NC18386 字符串 这道题几乎就是双指针的模板题了。 每次移动一下左端点,然后移动右端点知道满足条件 #include<bits/stdc++.h> using namespace std; int v[300] = {}; int32_t main() { string s; cin >> s 阅读全文
posted @ 2022-07-05 15:21 PHarr 阅读(26) 评论(0) 推荐(0) 编辑