#SDNU1653. The number of Invertion
The number of Invertion
Description
You need to calculate how many invertion order pairs in the given array. The number invertion order pairs is the number of pair satisfing .
Format
Input
The first line contains an integer T representing the number of interger in the array.
The second line contains T numbers separated by space. You may assume that ,
Output
The number of invertion order pairs in the given array.
Maybe the answer is too large, so please ouput the
Samples
5
3 4 1 2 5
4