摘要:
1929. Codeforces Round 926 (Div. 2) 寄寄寄。 A. Sasha and the Beautiful Array 容易发现 \(\displaystyle \sum_{i = 2}^{n}(a_i - a_{i - 1}) = a_n - a_1\),令 \(\di 阅读全文
摘要:
数位 DP 好题!!!1 题出的好!难度适中,覆盖知识点广,题目又着切合实际的背景,解法比较自然。给出题人点赞 ! Link:https://codeforces.com/problemset/problem/1194/G Problem Statement time limit per test: 阅读全文
摘要:
线段树的练手好题。 Link:https://codeforces.com/problemset/problem/1928/F Problem Statement time limit per test: 2 seconds memory limit per test: 256 megabytes 阅读全文
摘要:
山东 2028 级 OIer。 很菜。 OIerDb https://oier.baoshuo.dev/oier/124413 QQ id = 1427746949 欢迎来加! 洛谷 uid = 448881 CodeForces AtCoder 阅读全文
摘要:
CodeForces 616F Expensive Strings https://codeforces.com/problemset/problem/616/F Problem tags string suffix structures strings *2700 Problem Statemen 阅读全文
摘要:
2024.1.16 / Day -9 期末考试考完啦!!!1 晚上开写 THUSC 2023 Day2! 然而啥都没写出来,只过了 comb_task1 和 comb_task4。 2024.1.17 / Day -8 过了 comb_task2 和 comb_task3 和 comb_task5, 阅读全文
摘要:
[ARC169D] Add to Make a Permutation \(\text{Time Limit: 2 sec / Memory Limit: 1024 MB / Difficulty: }\color{red}2812\) Problem Statement Constraints S 阅读全文
摘要:
https://www.luogu.com.cn/contest/110331 https://www.luogu.com.cn/team/44709#problem 可以在 https://www.luogu.com.cn/problem/T335306 下载 manual.pdf,在 https 阅读全文
该文被密码保护。 阅读全文
摘要:
这个合集主要是近期的 CodeForces 比赛题。 CF1898A. Milica and String 很容易发现答案不超过 \(1\),然后分类讨论当前 B 的个数然后选取一个前缀赋值即可。如果已经满足条件答案就是 \(0\)。反正随便做做,时间复杂度 \(O(n)\),代码。 CF1898B 阅读全文