随笔分类 - 7.1 字符串——后缀自动机
摘要:题面 https://www.luogu.org/problem/SP8222 题解 建出后缀树之后随便搞一搞,反向更新就好。
阅读全文
摘要:题面 https://www.luogu.org/problem/P3732 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P4770 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P5284 题解
阅读全文
摘要:题面 https://loj.ac/problem/6041 题解 两个后缀的$LCS$,就是在后缀树上的$LCA$的深度。对于同属于一个$LCA$的点,我们只需要在原序列上连续的两个(实现上,直接在插进去的时候找就可以了,要是遍历一遍复杂度就假了) 启发式合并。
阅读全文
摘要:题面 https://www.luogu.org/problem/SP8093 题解
阅读全文
摘要:题面 http://darkbzoj.tk/problem/1396 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P4070 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P4022 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/CF235C 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P1368 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3346 题解
阅读全文
摘要:题面 http://darkbzoj.tk/problem/3277 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P4248 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3975 题解
阅读全文
摘要:题面 https://www.luogu.org/problem/P3181 题解
阅读全文
摘要:题面 http://darkbzoj.tk/problem/2555 题解 $LCT$ 维护子树权值和。 注意 $makeroot(x)$ 是真的 $makeroot$。(能看懂的人应该都看懂了) #include<cstdio> #include<iostream> #include<cstrin
阅读全文
摘要:题面 https://vjudge.net/problem/HDU-4622 题解
阅读全文
摘要:题面 https://vjudge.net/problem/SPOJ-LCS2 题解
阅读全文
摘要:题面 https://vjudge.net/problem/SPOJ-LCS 题解
阅读全文

浙公网安备 33010602011771号