CF 1896F - Bracket Xoring

Rating: 2600
Tags: constructive algorithms, greedy, implementation, math
Solve time: 2m 35s
Verified: no

Solution

Working