Rosetta Problems

关于深度优先搜索和逆序对的题应该不会很难吧这件事

https://www.acwing.com/problem/content/4480