#1212. 逆序对
逆序对
1、对于给定的序列{An},我们把(i, j)称为逆序对当且仅当i < j且Ai> Aj。那么序列1, 7, 2, 3, 6,5, 4的逆序对数为({{ input(1) }})个
1、对于给定的序列{An},我们把(i, j)称为逆序对当且仅当i < j且Ai> Aj。那么序列1, 7, 2, 3, 6,5, 4的逆序对数为({{ input(1) }})个
By signing up a 羽润编程 universal account, you can submit code and join discussions in all online judging services provided by us.