摘要: B. String #include <bits/stdc++.h> using namespace std; using i32 = int32_t; using i64 = long long; using vi = vector<int>; i32 main(){ ios::sync_with 阅读全文
posted @ 2024-05-28 21:33 PHarr 阅读(51) 评论(0) 推荐(0) 编辑
摘要: A - Buttons #include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; int res = 0; if(a > b) res += a, a --; else res += b, 阅读全文
posted @ 2024-05-28 20:28 PHarr 阅读(9) 评论(0) 推荐(0) 编辑
摘要: A - 小苯的九宫格 #include <bits/stdc++.h> using namespace std; int main(){ vector<int> a(11); for(int i = 1; i <= 9; i ++) cin >> a[i]; string s; cin >> s; 阅读全文
posted @ 2024-05-28 17:43 PHarr 阅读(11) 评论(0) 推荐(0) 编辑