摘要: 牛客小白月赛86 A 水盐平衡 解题思路: 通分,然后比较分子大小。 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<ll, ll>; #define fi first 阅读全文
posted @ 2024-01-19 21:11 value0 阅读(15) 评论(0) 推荐(0) 编辑
摘要: Educational Codeforces Round 161 (Rated for Div. 2) A - Tricky Template 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using 阅读全文
posted @ 2024-01-19 00:41 value0 阅读(95) 评论(0) 推荐(1) 编辑
摘要: LeetCode 第 121 场双周赛 大于等于顺序前缀和的最小缺失整数 代码: class Solution { public: int missingInteger(vector<int>& nums) { int n = nums.size(); set<int> s; for(auto x 阅读全文
posted @ 2024-01-18 16:21 value0 阅读(4) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round 920 (Div. 3) A - Square 解题思路: 取左下角和右上角。 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<ll, 阅读全文
posted @ 2024-01-18 16:09 value0 阅读(11) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round 919 (Div. 2) A. Satisfying Constraints 解题思路: 确定最大下界和最小上界。 然后看有多少个不可选数在界内。 代码: #include <bits/stdc++.h> using namespace std; using ll 阅读全文
posted @ 2024-01-14 00:53 value0 阅读(163) 评论(0) 推荐(2) 编辑
摘要: 牛客小白月赛85 A ACCEPT 点击查看 943/1484 通过 B 咕呱蛙 点击查看 853/2130 通过 C 得分显示 点击查看 526/2489 通过 D 阿里马马与四十大盗 点击查看 269/1993 通过 E 烙饼 点击查看 56/322 通过 A 解题思路: 统计a56爆大奖在线娱乐字符的数量,算 阅读全文
posted @ 2024-01-12 18:19 value0 阅读(26) 评论(0) 推荐(0) 编辑
摘要: AtCoder Beginner Contest 335 (Sponsored by Mynavi) A - 2023 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<l 阅读全文
posted @ 2024-01-11 10:04 value0 阅读(9) 评论(0) 推荐(0) 编辑
摘要: UNIQUE VISION Programming Contest 2023 Christmas (AtCoder Beginner Contest 334) A - Christmas Present 代码: #include <bits/stdc++.h> using namespace std 阅读全文
posted @ 2023-12-26 02:38 value0 阅读(9) 评论(0) 推荐(0) 编辑
摘要: Educational Codeforces Round 159 (Rated for Div. 2) A - Binary Imbalance 解题思路: 有一对\((0,1)\),那么\(0\)就能无限增长。 代码: #include <bits/stdc++.h> using namespac 阅读全文
posted @ 2023-12-17 22:51 value0 阅读(36) 评论(0) 推荐(0) 编辑
摘要: Toyota Programming Contest 2023#8(AtCoder Beginner Contest 333) A - Three Threes 代码: #include <bits/stdc++.h> using namespace std; typedef long long l 阅读全文
posted @ 2023-12-17 22:26 value0 阅读(25) 评论(0) 推荐(0) 编辑