#P3805. 【模板】Manacher
【模板】Manacher
Description
Given a string consisting only of lowercase English letters $\texttt a,\texttt b,\texttt c,\ldots\texttt y,\texttt z$, find the length of the longest palindromic substring in .
The length of the string is .
Input Format
One line containing a string consisting of lowercase English letters $\texttt a,\texttt b,\texttt c,\cdots,\texttt y,\texttt z$.
Output Format
Output a single integer representing the answer.
aaa
3
Hint
。
Translated by ChatGPT 5
京公网安备 11011102002149号