Rosetta Problems

転倒数

https://atcoder.jp/contests/chokudai_S001/tasks/chokudai_S001_j