cf/mirror

Median of an Array

CF
1946A800· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
8
3
2 2 8
4
7 3 3 1
1
1000000000
5
5 5 5 4 5
6
2 1 2 3 1 4
2
1 2
2
1 1
4
5 5 5 5
Output
1
2
1
3
2
1
2
3
1946A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)