08 2023 档案

摘要:洛谷100题计划 (15/100) P1094 [NOIP2007 普及组] 纪念品分组 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) 要使得分组最少,其实就是要让一个大的和一个小的放一起,如果大的和小的一起放超过了\(w\),那大的就应该单独放,所以排完序之后,我们可以用双指针 阅读全文
posted @ 2023-08-24 18:46 Ke_scholar 阅读(15) 评论(0) 推荐(0)
摘要:Namomo Summer Camp 23 Day 1(GCPC2021) Problem B: Brexiting and Brentering 签到 #include<bits/stdc++.h> using i64 = long long; using namespace std; typed 阅读全文
posted @ 2023-08-24 15:23 Ke_scholar 阅读(56) 评论(0) 推荐(0)
摘要:洛谷100题计划(10/100) P1031 [NOIP2002 提高组] 均分纸牌 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) 因为第\(1\)堆只能移动到第\(2\)堆,且第\(N\)堆只能移动到第\(N-1\)堆,所以直接从左边往右边转移就行,这里是都减了一个平均数,看所 阅读全文
posted @ 2023-08-23 17:34 Ke_scholar 阅读(58) 评论(0) 推荐(0)
摘要:# [牛客周赛 Round 8](https://ac.nowcoder.com/acm/contest/63585#question) ## [A-小美的排列询问_牛客周赛 Round 8 (nowcoder.com)](https://ac.nowcoder.com/acm/contest/63 阅读全文
posted @ 2023-08-23 03:17 Ke_scholar 阅读(48) 评论(0) 推荐(0)
摘要:# [第 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)
摘要:# [SMU Summer 2023 Contest Round 15](https://codeforces.com/group/L9GOcnr1dm/contest/467333) ## [A. AB Balance](https://codeforces.com/group/L9GOcnr1d 阅读全文
posted @ 2023-08-18 02:28 Ke_scholar 阅读(13) 评论(0) 推荐(0)
摘要:# [SMU Summer 2023 Contest Round 14](https://codeforces.com/group/L9GOcnr1dm/contest/467332) ## [A. Potion-making](https://codeforces.com/group/L9GOcn 阅读全文
posted @ 2023-08-18 02:09 Ke_scholar 阅读(12) 评论(0) 推荐(0)
摘要:SMU Summer 2023 Contest Round 13 A. Review Site 我们总是可以把差评放到另一个服务器,好评和中立放另一个,这样最多投票数就是好评与中立数 #include <bits/stdc++.h> #define int long long using names 阅读全文
posted @ 2023-08-18 01:57 Ke_scholar 阅读(15) 评论(0) 推荐(0)
摘要:# [SMU Summer 2023 Contest Round 12](https://codeforces.com/group/L9GOcnr1dm/contest/467329) ## [A. K-divisible Sum](https://codeforces.com/group/L9GO 阅读全文
posted @ 2023-08-18 01:17 Ke_scholar 阅读(17) 评论(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 阅读(61) 评论(0) 推荐(1)
摘要:23 暑假友谊赛 No.4(UKIEPC 2017) Problem A Alien Sunset hh,开始一眼差分,但是写寄了qwq,后来换枚举过了(Orz,但是看学长差分是能做的,我就说嘛,差分肯定能做( 说下枚举思路吧,就是把每个区间都存起来,选出自转周期的最大值为\(ma\),然后去枚举\ 阅读全文
posted @ 2023-08-10 16:02 Ke_scholar 阅读(24) 评论(0) 推荐(0)
摘要:SMU Summer 2023 Contest Round 11(2022-2023 ACM-ICPC Nordic Collegiate Programming Contest (NCPC 2022)) A. Ace Arbiter 用\(A\)和\(B\)代表\(Alice\)和\(Bob\), 阅读全文
posted @ 2023-08-10 14:38 Ke_scholar 阅读(99) 评论(0) 推荐(0)
摘要:# [SMU Summer 2023 Contest Round 10](https://codeforces.com/group/L9GOcnr1dm/contest/466403)(ICPC — International Collegiate Programming Contest Asia 阅读全文
posted @ 2023-08-10 10:47 Ke_scholar 阅读(20) 评论(0) 推荐(0)
摘要:# [第 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 阅读(50) 评论(0) 推荐(0)
摘要:23 暑假友谊赛 No.3 Problem - B - Codeforces 贪心吧,每次看哪块瓷砖划算就尽量多的放哪块 #include <bits/stdc++.h> #define int long long using namespace std; typedef pair<int,int> 阅读全文
posted @ 2023-08-03 19:58 Ke_scholar 阅读(19) 评论(0) 推荐(0)
摘要:2019 山东省大学生程序设计竞赛 A. Calandar 纯模拟吧(感觉我做麻烦了(?), 就是如果问的是未来的日期,就用相隔天数取模后加上这天的星期, 如果问的是曾经的,就用这天的星期减去相隔天数的取模后的数,因为是减法,记得加模数 #include <bits/stdc++.h> #defin 阅读全文
posted @ 2023-08-03 18:55 Ke_scholar 阅读(27) 评论(0) 推荐(0)
摘要:# [SMU Summer 2023 Contest Round 8](https://codeforces.com/group/L9GOcnr1dm/contest/464880)(2019 陕西省大学生程序设计竞赛) ## B - Grid with Arrows(欧拉图) 题意:一个总规模为$ 阅读全文
posted @ 2023-08-03 14:18 Ke_scholar 阅读(132) 评论(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)