洛谷P3157 [CQOI2011]
动态逆序对 题解
题目链接:P3157
[CQOI2011] 动态逆序对
题意:
对于序列 \(a\),它的逆序对数定义为集合
\[
\{(i,j)\mid i < j \,\land\, a
2024-06-10