Rosetta Problems

Score of Permutations

https://atcoder.jp/contests/abc226/tasks/abc226_f