Time limit
2000 ms
Memory limit
262144 kB
Source
AtCoder Regular Contest 064
Descriptions:

Rotated Palindromes

AtCoder - 2155