SP3208 PALIM - Yet Another Longest Palindrome Problem
Description
A string is called a palindrome if it's the same when read from left to right and from right to left. For example, "abdba" is a palindrome, but "abbaa" is not.
Given a string, print the length of the longest consecutive sequence of characters occurrences at least once in this string, which is a palindrome.
Input Format
- Line 1: a string consists of at most 100000 characters. The ASCII code of all characters are between 32 and 127, inclusive.
- Line 2: a magical key(for security purpose).
Output Format
- Line 1: the length of the longest palindrome.
- Line 2: the magical key.