cf/mirror

On Sum of Number of Inversions in Permutations

CF
396D3s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
2
2 1
Output
1
Sample 2of 2
Input
3
2 1 3
Output
2
396D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)