cf/mirror

Lucky Sorting

CF
109D2000· candidate master3s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
2
4 7
Output
0
Sample 2of 3
Input
3
4 2 1
Output
1
1 3
Sample 3of 3
Input
7
77 66 55 44 33 22 11
Output
7
1 7
7 2
2 6
6 7
3 4
5 3
4 5
109D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)