06 2022 档案
差分约束
摘要:luogu:https://www.luogu.com.cn/problem/P5960 给出一组包含 $m$ 个不等式,有 $n$ 个未知数的形如: $$ \begin{cases} x_{c_1}-x_{c'1}\leq y_1 \x{c_2}-x_{c'2} \leq y_2 \ \cdots
阅读全文
Codeforces Round #785 (Div. 2)
摘要:2400 交互,位运算
阅读全文
AC自动机
摘要:时间复杂度:$O(s * n(建树) + s * n(失配指针) + t * s(查询最坏的时候) )$ https://www.luogu.com.cn/problem/P3808 求有多少个不同的模式串在文本串里出现过。两个模式串不同当且仅当他们编号不同。 ``` #include using
阅读全文
Codeforces Round #796 (Div. 2)
摘要:2500 dsu+brute force
阅读全文
浙公网安备 33010602011771号