Rosetta Problems
← atcoder に戻る
Preserve Diameter
https://atcoder.jp/contests/hitachi2020/tasks/hitachi2020_f