cf/mirror

Inversions problem

CF
513G11800· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
3 1
1 2 3
Output
0.833333333333333
Sample 2of 2
Input
3 4
1 3 2
Output
1.458333333333334
513G1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…