Rosetta Problems

Permutation Enumeration

https://onlinejudge.u-aizu.ac.jp/problems/ITP2_5_D