Rosetta Problems
← atcoder に戻る
Backfront
https://atcoder.jp/contests/agc024/tasks/agc024_b