Maximum palindrome
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Remove the minimum number of characters from the given string so that it becomes a palindrome (a string that reads the same both forwards and backwards).
Input
One non-empty string of up to characters. The string consists only of uppercase Latin letters.
Output
Print the longest possible palindrome that can be obtained from the original string by deleting some characters. If there are multiple such palindromes, print any one of them.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 42%