Rosetta Problems

Spanning Tree

https://atcoder.jp/contests/jsc2021/tasks/jsc2021_g