Rosetta Problems

交換と転倒数

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/1461