Rosetta Problems

Typical Permutation Descriptor

https://atcoder.jp/contests/arc186/tasks/arc186_b