Rosetta Problems
← atcoder に戻る
AtCoder 10th Anniversary
https://atcoder.jp/contests/ahc012/tasks/ahc012_a