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

浙公网安备 33010602011771号