CF 2098D - Baggage Claim

Rating: 2300
Tags: combinatorics, dfs and similar, graphs, math
Solve time: 2m 45s
Verified: no

Solution

Working