上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: Toyota Programming Contest 2024#3(AtCoder Beginner Contest 344) A - Spoiler 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; us 阅读全文
posted @ 2024-03-10 02:13 value0 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 牛客小白月赛88 A 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<ll, ll>; typedef double db; #define fi first #defi 阅读全文
posted @ 2024-03-08 21:31 value0 阅读(32) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round 932 (Div. 2) A - Entertainment in MAC 解题思路: 如果翻转字符小于原字符,那么一直翻转即可。 否则,翻转\(n - 1\)次,然后添加一次。 代码: #include <bits/stdc++.h> using namespac 阅读全文
posted @ 2024-03-06 12:15 value0 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 牛客周赛 Round 35 小红的字符串切割 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<ll, ll>; typedef double db; #define fi 阅读全文
posted @ 2024-03-03 21:58 value0 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 牛客周赛 Round 35 小红的字符串切割 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<ll, ll>; typedef double db; #define fi 阅读全文
posted @ 2024-03-03 18:06 value0 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 第 387 场周赛 将元素分配到两个数组中 I 解题思路: 暴力比较放置。 代码: class Solution { public: vector<int> resultArray(vector<int>& nums) { vector<int> a, b; int n = nums.size(); 阅读全文
posted @ 2024-03-03 15:28 value0 阅读(1) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round 931 (Div. 2) A - Too Min Too Max 解题思路: 最大、最小、次大、次小。 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii 阅读全文
posted @ 2024-03-02 01:09 value0 阅读(198) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round 930 (Div. 2) A - Shuffle Party 解题思路: \(1\)会按着\(2\)的整数次幂往后跳。 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; u 阅读全文
posted @ 2024-03-01 00:35 value0 阅读(465) 评论(0) 推荐(1) 编辑
摘要: Educational Codeforces Round 160 (Rated for Div. 2) A - Rating Increase 代码: #include <bits/stdc++.h> using namespace std; typedef long long ll; const 阅读全文
posted @ 2024-02-29 09:59 value0 阅读(13) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round 929 (Div. 3) A - Turtle Puzzle: Rearrange and Negate 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pi 阅读全文
posted @ 2024-02-29 08:42 value0 阅读(41) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页