Rosetta Problems
← atcoder に戻る
指輪 (Ring)
https://atcoder.jp/contests/joi2011yo/tasks/joi2011yo_b