cf/mirror

Median Permutation

CF
2190E3200· legendary gm2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
3
1 3 2
5
0 5 4 1 0
7
0 0 1 0 0 7 0
10
1 10 0 0 0 0 0 0 0 0
15
0 0 10 0 0 15 0 0 6 7 0 1 0 0 3
Output
1
0
10
1
4
2190E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)