01 2024 档案
摘要:牛客周赛 Round 30 A 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<ll, ll>; #define fi first #define se second u
阅读全文
摘要:Codeforces Round 921 (Div. 2) 推荐题解 A - We Got Everything Covered! 解题思路: 以前\(k\)个字符都出现过至少一次为一轮,构造\(n\)轮即可。 代码: #include <bits/stdc++.h> using namespace
阅读全文
摘要:AtCoder Beginner Contest 338 A - Capitalized? 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<ll, ll>; #defin
阅读全文
摘要:牛客练习赛121 出题人题解 | 牛客练习赛 121 题解 小念吹气球 解题思路: 字符长度加字符种类数。 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<ll, ll>
阅读全文
摘要:牛客周赛 Round 29 小红大战小紫 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<ll, ll>; #define fi first #define se sec
阅读全文
摘要:Toyota Programming Contest 2024#1(AtCoder Beginner Contest 337) A - Scoreboard 代码: #include <bits/stdc++.h> using namespace std; using ll = long long;
阅读全文
摘要:AtCoder Beginner Contest 336 A - Long Loong 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<ll, ll>; #define
阅读全文
摘要:牛客小白月赛86 A 水盐平衡 解题思路: 通分,然后比较分子大小。 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<ll, ll>; #define fi first
阅读全文
摘要:Educational Codeforces Round 161 (Rated for Div. 2) A - Tricky Template 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using
阅读全文
摘要:LeetCode 第 121 场双周赛 大于等于顺序前缀和的最小缺失整数 代码: class Solution { public: int missingInteger(vector<int>& nums) { int n = nums.size(); set<int> s; for(auto x
阅读全文
摘要:Codeforces Round 920 (Div. 3) A - Square 解题思路: 取左下角和右上角。 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<ll,
阅读全文
摘要:Codeforces Round 919 (Div. 2) A. Satisfying Constraints 解题思路: 确定最大下界和最小上界。 然后看有多少个不可选数在界内。 代码: #include <bits/stdc++.h> using namespace std; using ll
阅读全文
摘要:牛客小白月赛85 A ACCEPT 点击查看 943/1484 通过 B 咕呱蛙 点击查看 853/2130 通过 C 得分显示 点击查看 526/2489 通过 D 阿里马马与四十大盗 点击查看 269/1993 通过 E 烙饼 点击查看 56/322 通过 A 解题思路: 统计每个字符的数量,算
阅读全文
摘要:AtCoder Beginner Contest 335 (Sponsored by Mynavi) A - 2023 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<l
阅读全文

浙公网安备 33010602011771号