Problem E: String Problem E Problem E: String Problem E
Time Limit: 1 Sec Memory Limit: 128 MB
Submit: 1068 Solved: 268
[Submit][Status][Web Board]Description
Given a string \(S\), you are required to find the length of its longest palindromic substring. Here we define a string is palindromic if and only if you can get the exactly same string by reversing the original string. For example, string \(abcba\) is palindromic while \(abcab\) is not.
Input
One line containing \(S \ \ (1\leq |S| \leq 10^5)\)
Output
One integer, indicating the answer
Sample Input
abcbad
Sample Output
5
HINT
[Submit][Status]