Count the number of inversions of every given sequence of integer numbers . Remember that an inversion is a pair of indices and such that and .
Input consists of several cases, each one with followed by the integer numbers . Assume .
For every case, print the number of inversions of the sequence.
Author: Salvador Roura
Generation: 2026-01-25T11:50:34.216Z
© Jutge.org, 2006–2026.
https://jutge.org