摘要:
KMP 求border for (int i = 2, j = 0; i <= m; i++) { while (b[i] != b[j + 1] && j) j = nex[j]; if (b[i] == b[j + 1]) j++; nex[i] = j; } AC自动机 自动AC的机器 相当于 阅读全文
posted @ 2020-12-29 22:26
ArrogHie
阅读(230)
评论(0)
推荐(0)
浙公网安备 33010602011771号