正文
增加 13 行删除 0 行
309 行未改动全部展开310311312313309 行未改动全部展开return 0;}```309 行未改动全部展开310311312313314315316317318319320321322323324325326309 行未改动全部展开return 0;}```求区间字符串在 SAM 里的位置,倍增跳到最上面长度。```cppint w (int l, int r) {int u = at[r];for (int i = 20; i >= 0; -- i )if (t[st[u][i]].len >= r - l + 1)u = st[u][i];return u;}```