版本比较
恶补 AC 自动机
正文
增加 1 行删除 1 行
96 行未改动979899100101101102103104105227 行未改动全部展开96 行未改动```cppfor(char ch : s){ for(int i = nxt[pos][ch - 'a']; i; i = fail[i]){ if(exist[i]) vis[exist[i]]++;//出现次数增加 //exist[i] 为结尾为 i 节点的模式串编号 //exist[i] 为结尾为 i 节点的模式串编号 } pos = nxt[pos][ch - 'a'];}``````227 行未改动全部展开