Inversions problem
513G22400· grandmaster2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
3 11 2 3
Output
0.833333333333333
Sample 2of 2
Input
3 41 3 2
Output
1.458333333333334
58%
513G2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
3 11 2 3
0.833333333333333
3 41 3 2
1.458333333333334