Time limit
2000 ms
Memory limit
262144 kB
Source
Technocup 2017 - Elimination Round 3
Tags
constructive algorithms data structures greedy *2000
Editorial
Announcement Tutorial
Descriptions:

Santa Claus and a Palindrome

CodeForces - 748D