Rosetta Problems
← atcoder に戻る
Forest
https://atcoder.jp/contests/apc001/tasks/apc001_d