上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: 牛客周赛 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 阅读(66) 评论(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 阅读(35) 评论(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 阅读(113) 评论(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 阅读(15) 评论(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 阅读(49) 评论(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 阅读(13) 评论(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 阅读(13) 评论(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 阅读(48) 评论(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 阅读(7) 评论(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 阅读(16) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 10 下一页