CF 1893A - Anonymous Informant

Rating: 1400
Tags: brute force, dfs and similar, graphs, implementation
Solve time: 34s
Verified: no

Solution

Working