Rosetta Problems

Permutation Score

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