Time limit
1000 ms
Memory limit
262144 kB
Source
Codeforces Round #411 (Div. 2)
Tags
constructive algorithms *1000
Editorial
Tutorial (en)
Descriptions:

3-palindrome

CodeForces - 805B