随笔分类 -  OJ

摘要:# [第 111 场双周赛 - 力扣(LeetCode)](https://leetcode.cn/contest/biweekly-contest-111/) ## [2824. 统计和小于目标的下标对数目 - 力扣(LeetCode)](https://leetcode.cn/problems/ 阅读全文
posted @ 2023-08-22 01:15 Ke_scholar 阅读(38) 评论(0) 推荐(0)
摘要:洛谷100题计划(5/100) P1002 [NOIP2002 普及组] 过河卒 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) 不开long long见祖宗!!! 把马的控制点都标记,其余正常转移即可 \(dp[i][j] += dp[i - 1][j] + dp[i][j - 阅读全文
posted @ 2023-08-22 00:42 Ke_scholar 阅读(26) 评论(0) 推荐(0)
摘要:# [AtCoder Beginner Contest 315](https://atcoder.jp/contests/abc315) ## [A - tcdr (atcoder.jp)](https://atcoder.jp/contests/abc315/tasks/abc315_a) **一 阅读全文
posted @ 2023-08-21 00:59 Ke_scholar 阅读(101) 评论(0) 推荐(0)
摘要:# [第 358 场周赛 - 力扣(LeetCode)](https://leetcode.cn/contest/weekly-contest-358/) ## [2815. 数组中的最大数对和 - 力扣(LeetCode)](https://leetcode.cn/problems/max-pai 阅读全文
posted @ 2023-08-16 10:47 Ke_scholar 阅读(31) 评论(0) 推荐(0)
摘要:# [AtCoder Beginner Contest 314 - AtCoder](https://atcoder.jp/contests/abc314) ## [A - 3.14 (atcoder.jp)](https://atcoder.jp/contests/abc314/tasks/abc 阅读全文
posted @ 2023-08-14 19:19 Ke_scholar 阅读(69) 评论(0) 推荐(0)
摘要:牛客周赛 Round 7 A-游游的you矩阵_牛客周赛 Round 7 (nowcoder.com) 把四种字符凑一起看看有没有\(y,o,u\)就行 #include <bits/stdc++.h> #define int long long using namespace std; signe 阅读全文
posted @ 2023-08-14 18:39 Ke_scholar 阅读(62) 评论(0) 推荐(1)
摘要:# [第 357 场周赛 - 力扣(LeetCode)](https://leetcode.cn/contest/weekly-contest-357/) ## [2810. 故障键盘 - 力扣(LeetCode)](https://leetcode.cn/problems/faulty-keybo 阅读全文
posted @ 2023-08-08 22:51 Ke_scholar 阅读(26) 评论(0) 推荐(0)
摘要:# 牛客周赛 Round 6 ## [A-游游的数字圈_牛客周赛 Round 6 (nowcoder.com)](https://ac.nowcoder.com/acm/contest/62622/A) **枚举即可** ```c++ #include #define int long long u 阅读全文
posted @ 2023-08-07 20:09 Ke_scholar 阅读(41) 评论(0) 推荐(0)
摘要:# [AtCoder Beginner Contest 313 - AtCoder](https://atcoder.jp/contests/abc313) ## [A - To Be Saikyo (atcoder.jp)](https://atcoder.jp/contests/abc313/t 阅读全文
posted @ 2023-08-07 18:55 Ke_scholar 阅读(51) 评论(0) 推荐(0)
摘要:# [牛客周赛 Round 5](https://ac.nowcoder.com/acm/contest/62033) ## [A-游游的字母变换_牛客周赛 Round 5 (nowcoder.com)](https://ac.nowcoder.com/acm/contest/62033/A) `` 阅读全文
posted @ 2023-08-02 11:02 Ke_scholar 阅读(40) 评论(0) 推荐(0)
摘要:# [第 356 场周赛 - 力扣(LeetCode)](https://leetcode.cn/contest/weekly-contest-356/) ## [2798. 满足目标工作时长的员工数目 - 力扣(LeetCode)](https://leetcode.cn/problems/num 阅读全文
posted @ 2023-08-01 10:45 Ke_scholar 阅读(32) 评论(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 阅读(56) 评论(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 阅读(58) 评论(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 阅读(74) 评论(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 阅读(48) 评论(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 阅读(12) 评论(0) 推荐(0)
摘要:# [freee Programming Contest 2023(AtCoder Beginner Contest 310) - AtCoder](https://atcoder.jp/contests/abc310) ## [A - Order Something Else (atcoder.j 阅读全文
posted @ 2023-07-16 16:53 Ke_scholar 阅读(74) 评论(0) 推荐(0)