Time limit
4000 ms
Memory limit
262144 kB
Source
Educational Codeforces Round 4
Tags
sortings *1900
Editorial
Announcement (en) Tutorial (en)
Descriptions:

The Union of k-Segments

CodeForces - 612D