方法一:用归并排序求逆序对https://blog.csdn.net/qq_40938077/article/details/85331296方法二:树状数组求逆序对https://blog.csdn.net/qq_41621517/article/details/100557030