Rosetta Problems
← atcoder に戻る
Swap to Gather
https://atcoder.jp/contests/abc393/tasks/abc393_d