02 2024 档案
摘要:Strings Hash template < int N > struct PolyHashing { i64 s[N]; i64 mod[2] = {1610612741ll, 805306457ll}; i64 pw[N][2]; i64 w[N][2]; void init (int m)
阅读全文
摘要:一些前置内容 Min-Max 容斥 \[\min_{x \in S}x = \sum_{T \subseteq S}(-1)^{T - 1}\max_{x \i
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:1929. Codeforces Round 926 (Div. 2) 寄寄寄。 A. Sasha and the Beautiful Array 容易发现 ,令 \(\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
阅读全文