Rosetta Problems

Network Construction

https://atcoder.jp/contests/awc0157/tasks/awc0157_d