Little Elephant and Sorting
205B1400· specialist0.5s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
31 2 3
Output
0
Sample 2of 3
Input
33 2 1
Output
2
Sample 3of 3
Input
47 4 1 47
Output
6
58%
205B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
31 2 3
0
33 2 1
2
47 4 1 47
6