Need help in data-structure problem.
Hello CodeForces. Offensively that round #383 was rescheduled.
Please help me with this problem.
Codeforces Round 1123 Solution Discussion