Time limit
1500 ms
Memory limit
524288 kB
Source
Codeforces Round #311 (Div. 2)
Tags
data structures dp graphs string suffix structures strings trees *2700
Editorial
Announcement Tutorial
Descriptions:

Ann and Half-Palindrome

CodeForces - 557E