Rosetta Problems
← atcoder に戻る
Spanning Tree
https://atcoder.jp/contests/jsc2021/tasks/jsc2021_g