上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 一些前置内容 Min-Max 容斥 \[\max_{x \in S}x = \sum_{T \subseteq S}(-1)^{T - 1}\min_{x \in T}x \]\[\min_{x \in S}x = \sum_{T \subseteq S}(-1)^{T - 1}\max_{x \i 阅读全文
posted @ 2024-02-18 19:36 CountingGroup 阅读(35) 评论(1) 推荐(0)
摘要: 1. 源码 typedef long long i64; typedef unsigned long long u64; typedef __int128 i128; const i128 o = 1; template < i64 mod, i64 invpow = mod - 2 > struc 阅读全文
posted @ 2024-02-18 15:08 CountingGroup 阅读(383) 评论(0) 推荐(0)
摘要: Some Templates Maximum Flow (Minimum Cut) template < class T, int N, int M > struct MaxFlow { int n; int cnt = 1, head[N]; struct Edge { T flow; int n 阅读全文
posted @ 2024-02-16 19:59 CountingGroup 阅读(18) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2024-02-16 16:02 CountingGroup 阅读(43) 评论(0) 推荐(0)
摘要: 数位 DP 好题!!!1 题出的好!难度适中,覆盖知识点广,题目又着切合实际的背景,解法比较自然。给出题人点赞 ! Link:https://codeforces.com/problemset/problem/1194/G Problem Statement time limit per test: 阅读全文
posted @ 2024-02-15 00:01 CountingGroup 阅读(52) 评论(0) 推荐(0)
摘要: 线段树的练手好题。 Link:https://codeforces.com/problemset/problem/1928/F Problem Statement time limit per test: 2 seconds memory limit per test: 256 megabytes 阅读全文
posted @ 2024-02-13 00:36 CountingGroup 阅读(37) 评论(0) 推荐(1)
摘要: 山东 2028 级 OIer。 很菜。 OIerDb https://oier.baoshuo.dev/oier/124413 QQ id = 1427746949 欢迎来加! 洛谷 uid = 448881 CodeForces AtCoder 阅读全文
posted @ 2024-02-06 13:34 CountingGroup 阅读(203) 评论(0) 推荐(0)
摘要: CodeForces 616F Expensive Strings https://codeforces.com/problemset/problem/616/F Problem tags string suffix structures strings *2700 Problem Statemen 阅读全文
posted @ 2024-01-31 22:11 CountingGroup 阅读(27) 评论(0) 推荐(0)
摘要: 2024.1.16 / Day -9 期末考试考完啦!!!1 晚上开写 THUSC 2023 Day2! 然而啥都没写出来,只过了 comb_task1 和 comb_task4。 2024.1.17 / Day -8 过了 comb_task2 和 comb_task3 和 comb_task5, 阅读全文
posted @ 2024-01-23 20:44 CountingGroup 阅读(285) 评论(0) 推荐(0)
摘要: [ARC169D] Add to Make a Permutation \(\text{Time Limit: 2 sec / Memory Limit: 1024 MB / Difficulty: }\color{red}2812\) Problem Statement Constraints S 阅读全文
posted @ 2024-01-23 11:27 CountingGroup 阅读(51) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 9 下一页