上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: Toyota Programming Contest 2024#1(AtCoder Beginner Contest 337) A - Scoreboard 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; 阅读全文
posted @ 2024-01-21 22:58 value0 阅读(45) 评论(0) 推荐(0)
摘要: AtCoder Beginner Contest 336 A - Long Loong 代码: #include <bits/stdc++.h> using namespace std; using ll = long long; using pii = pair<ll, ll>; #define 阅读全文
posted @ 2024-01-20 23:10 value0 阅读(13) 评论(0) 推荐(0)
摘要: 牛客小白月赛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 阅读(40) 评论(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 阅读(114) 评论(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 阅读(15) 评论(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 阅读(18) 评论(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 阅读(187) 评论(0) 推荐(2)
摘要: 牛客小白月赛85 A ACCEPT 点击查看 943/1484 通过 B 咕呱蛙 点击查看 853/2130 通过 C 得分显示 点击查看 526/2489 通过 D 阿里马马与四十大盗 点击查看 269/1993 通过 E 烙饼 点击查看 56/322 通过 A 解题思路: 统计每个字符的数量,算 阅读全文
posted @ 2024-01-12 18:19 value0 阅读(62) 评论(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 阅读(20) 评论(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 阅读(22) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页