#789. 求逆序对-归并排序
求逆序对-归并排序
Description
给定一个序列 $(a_1, a_2, \ldots, a_n)$,

Input Format
第一行为$n$,表示序列长度,接下来的$n$行,第$i+1$行表示序列中的第$i$个数。
## Output Format
所有逆序对总数。
4
3
2
3
2
3
Hint
。
给定一个序列 $(a_1, a_2, \ldots, a_n)$,

第一行为$n$,表示序列长度,接下来的$n$行,第$i+1$行表示序列中的第$i$个数。
## Output Format
所有逆序对总数。
4
3
2
3
2
3
N≤105,A_i≤105。