Problem A
Palindrome Substring
A palindrome is a word or phrase that reads the same backwards or forwards. For this problem, we’re going to find all the different palindromes that occur inside a string.
We’ll say that string
Input
Input consists of up to
Output
For each input string, print out the list of all of its non-trivial palindrome substrings. Each list of palindromes should be sorted lexicographically, and should not contain duplicates. Print a blank line after the output for each input string.
Sample Input 1 | Sample Output 1 |
---|---|
thisisatest xxxxoooo |
isi sis oo ooo oooo xx xxx xxxx |