02 2024 档案

摘要: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 阅读(30) 评论(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 阅读(102) 评论(0) 推荐(1)
摘要:牛客周赛 Round 34 小红的字符串生成 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<ll, ll>; #define fi first #define se s 阅读全文
posted @ 2024-02-25 23:48 value0 阅读(121) 评论(0) 推荐(0)
摘要:HUAWEI Programming Contest 2024(AtCoder Beginner Contest 342) A - Yay! 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using p 阅读全文
posted @ 2024-02-25 17:34 value0 阅读(82) 评论(0) 推荐(1)
摘要:Educational Codeforces Round 162 (Rated for Div. 2) A - Moving Chips 解题思路: 模拟一下,不难发现是\(1\)之间\(0\)的个数。 代码: #include <bits/stdc++.h> using namespace std 阅读全文
posted @ 2024-02-24 23:15 value0 阅读(252) 评论(0) 推荐(1)
摘要:Toyota Programming Contest 2024#2(AtCoder Beginner Contest 341) A - Print 341 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; 阅读全文
posted @ 2024-02-20 23:32 value0 阅读(57) 评论(0) 推荐(0)
摘要:Codeforces Round 927 (Div. 3) A - Thorns and Coins 解题思路: 出现连续两个障碍之前,所有金币都能拿到。 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; 阅读全文
posted @ 2024-02-19 19:40 value0 阅读(139) 评论(0) 推荐(0)
摘要:牛客小白月赛87 小苯的石子游戏 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<ll, ll>; #define fi first #define se second 阅读全文
posted @ 2024-02-17 17:54 value0 阅读(36) 评论(0) 推荐(0)
摘要:KAJIMA CORPORATION CONTEST 2024(AtCoder Beginner Contest 340) A - Arithmetic Progression 代码: #include <bits/stdc++.h> using namespace std; using ll = 阅读全文
posted @ 2024-02-14 19:27 value0 阅读(58) 评论(0) 推荐(0)
摘要:Codeforces Round 925 (Div. 3) A - Recovering a Small String 解题思路: 枚举. 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pi 阅读全文
posted @ 2024-02-14 13:51 value0 阅读(96) 评论(0) 推荐(1)
摘要:2024牛客寒假算法基础集训营1 A 解题思路: 按照\(dfs\)出现顺序暴力判断即可。 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<ll, ll>; #defin 阅读全文
posted @ 2024-02-12 22:22 value0 阅读(36) 评论(0) 推荐(0)
摘要:牛客周赛 Round 32 小红的 01 背包 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<ll, ll>; #define fi first #define se 阅读全文
posted @ 2024-02-12 19:38 value0 阅读(54) 评论(0) 推荐(0)
摘要:Codeforces Round 924 (Div. 2) A - Rectangle Cutting 解题思路: 初始矩形长宽为\((a,b)\),如果我们切\(a\),那么一定不能再拼接\(a\),否则一定一样。所以我们拼接\(b\),即将\(a\)对半分开得到两个\((\frac{a}{2}, 阅读全文
posted @ 2024-02-11 19:51 value0 阅读(385) 评论(0) 推荐(1)
摘要:Japan Registry Services (JPRS) Programming Contest 2024 (AtCoder Beginner Contest 339) A - TLD 代码: #include <bits/stdc++.h> using namespace std; using 阅读全文
posted @ 2024-02-06 17:18 value0 阅读(35) 评论(0) 推荐(0)
摘要:牛客周赛 Round 31 小红小紫替换 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<ll, ll>; #define fi first #define se sec 阅读全文
posted @ 2024-02-05 21:55 value0 阅读(39) 评论(0) 推荐(0)