A
- AC自动机模板题,注意是统计包含哪些单词,不是统计总得出现次数
# include
# include
# include
# include
# include
# include
# include
# include
# include
# include
B
# include
# include
# include
# include
# include
# include
# include
# include
# include
# include
C
- 求一个串最长前缀使得和另一个串的最长后缀匹配
- 扩展kmp和kmp都能做
# include
# include
# include
# include
# include
# include
# include
# include
# include
# include
D
# include
# include
# include
# include
# include
# include
# include
# include
# include
# include
E
# include
# include
# include
# include
# include
# include
# include
# include
# include
# include
F
- 原字符串x2,然后跑扩展kmp,枚举位置查看extnd数组,如果大于等于n说明,相等,否则比较不想等的那个位置的大小关系
# include
# include
# include
# include
# include
# include
# include
# include
# include
# include
G
- AC自动机板子题,会卡内存,建议使用指针形式写ac自动机(虽然我没有……)
# include
# include
# include
# include
# include
# include
# include
# include
# include
# include
H
- 板子题
- 可以把A-Z以外的字符都归为第26号字符,A-Z是0-25
# include
# include
# include
# include
# include
# include
# include
# include
# include
# include