做题笔记 2023.2
February 2, 2023 •
Comment
CF808G Anthem of Berland
数据范围明示 dp。首先在模式串上跑 kmp,预处理失配指针,dp 时遇到问号就暴力枚举字符集中每个字母,复杂度为 $O(|\Sigma|\cdot|S|\cdot|T|)$,可以卡过。