Rosetta Problems
← atcoder に戻る
Long Shuffle
https://atcoder.jp/contests/agc061/tasks/agc061_a