Rosetta Problems
← atcoder に戻る
Next Permutation
https://atcoder.jp/contests/tupc2022/tasks/tupc2022_h