CF 402B - Trees in a Row

Codeforces 402B: Trees in a Row

CF 402B - Trees in a Row

Rating: 1400
Tags: brute force, implementation
Solve time: 2m 19s
Verified: no

Solution