Rosetta Problems
← atcoder に戻る
Colorful Spanning Tree
https://atcoder.jp/contests/abc399/tasks/abc399_g