摘要: 后缀自动机 (SAM) struct sam { int tr[N][26], len[N], fa[N], tot; void clear() { rep (i, 1, tot) memset(tr[i], 0, sizeof tr[i]), len[i] = fa[i] = 0; tot = 1 阅读全文
posted @ 2025-04-30 19:07 Cynops 阅读(23) 评论(0) 推荐(1)

Loading