Time limit
1000 ms
Memory limit
262144 kB
Source
Codeforces Round #265 (Div. 1)
Tags
greedy strings *1700
Editorial
Announcement Tutorial
Descriptions:

No to Palindromes!

CodeForces - 464A