AQ. 【模板】manacher

    Type: RemoteJudge 1000ms 512MiB

【模板】manacher

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

给出一个只由小写英文字符 $\texttt a,\texttt b,\texttt c,\ldots\texttt y,\texttt z$ 组成的字符串 SS ,求 SS 中最长回文串的长度 。

字符串长度为 nn

输入格式

一行小写英文字符 $\texttt a,\texttt b,\texttt c,\cdots,\texttt y,\texttt z$ 组成的字符串 SS

输出格式

一个整数表示答案。

aaa
3

提示

1n1.1×1071\le n\le 1.1\times 10^7

【蒙青创】A班CSP备战模板

Not Claimed
Status
Done
Problem
68
Open Since
2025-10-24 0:00
Deadline
2025-10-31 23:59
Extension
24 hour(s)