Rosetta Problems

Permutation Cover

https://atcoder.jp/contests/agc046/tasks/agc046_e