12 2024 档案
摘要:牛客周赛 Round 72 题解 A 小红的01串(一) 直接遍历即可 #include <bits/stdc++.h> using namespace std; void solve() { string s; cin >> s; int n = s.size(); int cnt = 0; fo
阅读全文
摘要:牛客周赛 Round 71 题解 A 构造A+B 容易想出最多有 \(n - 1\) 种构造方法,所以只要判断 \(n\) 和 \(k\) 的关系即可。 #include <bits/stdc++.h> using namespace std; int main() { int n, k; cin
阅读全文
摘要:牛客周赛 Round 70题解 A 小苯晨跑 #include <bits/stdc++.h> using namespace std; void solve() { int a[4]; for (int i = 0; i < 4; i ++ ) cin >> a[i]; sort(a, a + 4
阅读全文

浙公网安备 33010602011771号