CF 1633F - Perfect Matching

Rating: 2800
Tags: data structures, divide and conquer, interactive, trees
Solve time: 39s
Verified: no

Solution

Working