Rosetta Problems
← atcoder に戻る
First Second
https://atcoder.jp/contests/agc047/tasks/agc047_b