Rosetta Problems
← atcoder に戻る
Island Hopping Adventure
https://atcoder.jp/contests/awc0031/tasks/awc0031_c