摘要: # [第 356 场周赛 - 力扣(LeetCode)](https://leetcode.cn/contest/weekly-contest-356/) ## [2798. 满足目标工作时长的员工数目 - 力扣(LeetCode)](https://leetcode.cn/problems/num 阅读全文
posted @ 2023-08-01 10:45 Ke_scholar 阅读(20) 评论(0) 推荐(0) 编辑
摘要: # [牛客周赛 Round 4](https://ac.nowcoder.com/acm/contest/61571) ## [A-游游的字符串构造_牛客周赛 Round 4 (nowcoder.com)](https://ac.nowcoder.com/acm/contest/61571/A) * 阅读全文
posted @ 2023-07-31 00:35 Ke_scholar 阅读(36) 评论(0) 推荐(0) 编辑
摘要: # [AtCoder Beginner Contest 312](https://atcoder.jp/contests/abc312) ## [A - Chord (atcoder.jp)](https://atcoder.jp/contests/abc312/tasks/abc312_a) `` 阅读全文
posted @ 2023-07-30 22:40 Ke_scholar 阅读(45) 评论(0) 推荐(0) 编辑
摘要: # [SMU Summer 2023 Contest Round 7](https://codeforces.com/group/L9GOcnr1dm/contest/464081) ## [A. Two Rival Students](https://codeforces.com/group/L9 阅读全文
posted @ 2023-07-28 20:01 Ke_scholar 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 23暑假友谊赛No.2 A-雨_23暑假友谊赛No.2 (nowcoder.com) #include <bits/stdc++.h> using namespace std; signed main() { ios::sync_with_stdio(false);cin.tie(nullptr); 阅读全文
posted @ 2023-07-26 19:48 Ke_scholar 阅读(3) 评论(0) 推荐(0) 编辑
摘要: SMU Summer 2023 Contest Round 6 A. There Are Two Types Of Burgers 从0枚举到汉堡的最大个数,取最大值 #include <bits/stdc++.h> #define int long long using namespace std 阅读全文
posted @ 2023-07-25 15:57 Ke_scholar 阅读(7) 评论(0) 推荐(0) 编辑
摘要: # [Dashboard - Codeforces Round 886 (Div. 4) - Codeforces](https://codeforces.com/contest/1850) ## [A. To My Critics](https://codeforces.com/contest/1 阅读全文
posted @ 2023-07-24 19:47 Ke_scholar 阅读(53) 评论(0) 推荐(0) 编辑
摘要: # Toyota Programming Contest 2023#4(AtCoder Beginner Contest 311) ## [A - First ABC (atcoder.jp)](https://atcoder.jp/contests/abc311/tasks/abc311_a) * 阅读全文
posted @ 2023-07-24 10:25 Ke_scholar 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 6930. 检查数组是否是好的 - 力扣(LeetCode) 首先判断数组长度是不是最大值 + 1, 然后排个序,判断0到n - 2是不是都是1到最大值的一个排列,满足这些返回true就行了 class Solution { public: bool isGood(vector<int>& num) 阅读全文
posted @ 2023-07-23 18:50 Ke_scholar 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 第二次比赛题解 P1138 第 k 小整数 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) 主要了解set的用法,set会自动去重和排序 #include <bits/stdc++.h> using namespace std; signed main() { ios::sync_ 阅读全文
posted @ 2023-07-22 18:50 Ke_scholar 阅读(24) 评论(0) 推荐(0) 编辑