08 2023 档案
洛谷100题计划 (15/100)
摘要:洛谷100题计划 (15/100) P1094 [NOIP2007 普及组] 纪念品分组 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) 要使得分组最少,其实就是要让一个大的和一个小的放一起,如果大的和小的一起放超过了\(w\),那大的就应该单独放,所以排完序之后,我们可以用双指针
Namomo Summer Camp 23 Day 1(GCPC2021)
摘要:Namomo Summer Camp 23 Day 1(GCPC2021) Problem B: Brexiting and Brentering 签到 #include<bits/stdc++.h> using i64 = long long; using namespace std; typed
洛谷100题计划(10/100)
摘要:洛谷100题计划(10/100) P1031 [NOIP2002 提高组] 均分纸牌 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) 因为第\(1\)堆只能移动到第\(2\)堆,且第\(N\)堆只能移动到第\(N-1\)堆,所以直接从左边往右边转移就行,这里是都减了一个平均数,看所
牛客周赛 Round 8
摘要:# [牛客周赛 Round 8](https://ac.nowcoder.com/acm/contest/63585#question) ## [A-小美的排列询问_牛客周赛 Round 8 (nowcoder.com)](https://ac.nowcoder.com/acm/contest/63
第 111 场双周赛 - 力扣(LeetCode)
摘要:# [第 111 场双周赛 - 力扣(LeetCode)](https://leetcode.cn/contest/biweekly-contest-111/) ## [2824. 统计和小于目标的下标对数目 - 力扣(LeetCode)](https://leetcode.cn/problems/
洛谷100题计划(5/100)
摘要:洛谷100题计划(5/100) P1002 [NOIP2002 普及组] 过河卒 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) 不开long long见祖宗!!! 把马的控制点都标记,其余正常转移即可 \(dp[i][j] += dp[i - 1][j] + dp[i][j -
AtCoder Beginner Contest 315
摘要:# [AtCoder Beginner Contest 315](https://atcoder.jp/contests/abc315) ## [A - tcdr (atcoder.jp)](https://atcoder.jp/contests/abc315/tasks/abc315_a) **一
SMU Summer 2023 Contest Round 15
摘要:# [SMU Summer 2023 Contest Round 15](https://codeforces.com/group/L9GOcnr1dm/contest/467333) ## [A. AB Balance](https://codeforces.com/group/L9GOcnr1d
SMU Summer 2023 Contest Round 14
摘要:# [SMU Summer 2023 Contest Round 14](https://codeforces.com/group/L9GOcnr1dm/contest/467332) ## [A. Potion-making](https://codeforces.com/group/L9GOcn
SMU Summer 2023 Contest Round 13
摘要:SMU Summer 2023 Contest Round 13 A. Review Site 我们总是可以把差评放到另一个服务器,好评和中立放另一个,这样最多投票数就是好评与中立数 #include <bits/stdc++.h> #define int long long using names
SMU Summer 2023 Contest Round 12
摘要:# [SMU Summer 2023 Contest Round 12](https://codeforces.com/group/L9GOcnr1dm/contest/467329) ## [A. K-divisible Sum](https://codeforces.com/group/L9GO
第 358 场周赛 - 力扣(LeetCode)
摘要:# [第 358 场周赛 - 力扣(LeetCode)](https://leetcode.cn/contest/weekly-contest-358/) ## [2815. 数组中的最大数对和 - 力扣(LeetCode)](https://leetcode.cn/problems/max-pai
AtCoder Beginner Contest 314
摘要:# [AtCoder Beginner Contest 314 - AtCoder](https://atcoder.jp/contests/abc314) ## [A - 3.14 (atcoder.jp)](https://atcoder.jp/contests/abc314/tasks/abc
牛客周赛 Round 7
摘要:牛客周赛 Round 7 A-游游的you矩阵_牛客周赛 Round 7 (nowcoder.com) 把四种字符凑一起看看有没有\(y,o,u\)就行 #include <bits/stdc++.h> #define int long long using namespace std; signe
23 暑假友谊赛 No.4(UKIEPC 2017)
摘要:23 暑假友谊赛 No.4(UKIEPC 2017) Problem A Alien Sunset hh,开始一眼差分,但是写寄了qwq,后来换枚举过了(Orz,但是看学长差分是能做的,我就说嘛,差分肯定能做( 说下枚举思路吧,就是把每个区间都存起来,选出自转周期的最大值为\(ma\),然后去枚举\
SMU Summer 2023 Contest Round 11(2022-2023 ACM-ICPC Nordic Collegiate Programming Contest (NCPC 2022))
摘要:SMU Summer 2023 Contest Round 11(2022-2023 ACM-ICPC Nordic Collegiate Programming Contest (NCPC 2022)) A. Ace Arbiter 用\(A\)和\(B\)代表\(Alice\)和\(Bob\),
SMU Summer 2023 Contest Round 10(ICPC — International Collegiate Programming Contest Asia Regional Contest, Yokohama,2018)
摘要:# [SMU Summer 2023 Contest Round 10](https://codeforces.com/group/L9GOcnr1dm/contest/466403)(ICPC — International Collegiate Programming Contest Asia
第 357 场周赛 - 力扣
摘要:# [第 357 场周赛 - 力扣(LeetCode)](https://leetcode.cn/contest/weekly-contest-357/) ## [2810. 故障键盘 - 力扣(LeetCode)](https://leetcode.cn/problems/faulty-keybo
牛客周赛 Round 6
摘要:# 牛客周赛 Round 6 ## [A-游游的数字圈_牛客周赛 Round 6 (nowcoder.com)](https://ac.nowcoder.com/acm/contest/62622/A) **枚举即可** ```c++ #include #define int long long u
AtCoder Beginner Contest 313
摘要:# [AtCoder Beginner Contest 313 - AtCoder](https://atcoder.jp/contests/abc313) ## [A - To Be Saikyo (atcoder.jp)](https://atcoder.jp/contests/abc313/t
23 暑假友谊赛 No.3
摘要:23 暑假友谊赛 No.3 Problem - B - Codeforces 贪心吧,每次看哪块瓷砖划算就尽量多的放哪块 #include <bits/stdc++.h> #define int long long using namespace std; typedef pair<int,int>
SMU Summer 2023 Contest Round 9(2019 山东省大学生程序设计竞赛)
摘要:2019 山东省大学生程序设计竞赛 A. Calandar 纯模拟吧(感觉我做麻烦了(?), 就是如果问的是未来的日期,就用相隔天数取模后加上这天的星期, 如果问的是曾经的,就用这天的星期减去相隔天数的取模后的数,因为是减法,记得加模数 #include <bits/stdc++.h> #defin
SMU Summer 2023 Contest Round 8(2019 陕西省大学生程序设计竞赛)
摘要:# [SMU Summer 2023 Contest Round 8](https://codeforces.com/group/L9GOcnr1dm/contest/464880)(2019 陕西省大学生程序设计竞赛) ## B - Grid with Arrows(欧拉图) 题意:一个总规模为$
牛客周赛 Round 5
摘要:# [牛客周赛 Round 5](https://ac.nowcoder.com/acm/contest/62033) ## [A-游游的字母变换_牛客周赛 Round 5 (nowcoder.com)](https://ac.nowcoder.com/acm/contest/62033/A) ``
第 356 场周赛 - 力扣(LeetCode)
摘要:# [第 356 场周赛 - 力扣(LeetCode)](https://leetcode.cn/contest/weekly-contest-356/) ## [2798. 满足目标工作时长的员工数目 - 力扣(LeetCode)](https://leetcode.cn/problems/num