cf/mirror

Absolute Sorting

CF
1772D1400· specialist2s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
8
5
5 3 3 3 5
4
5 3 4 5
8
1 2 3 4 5 6 7 8
6
10 5 4 3 2 1
3
3 3 1
3
42 43 42
2
100000000 99999999
6
29613295 52036613 75100585 78027446 81409090 73215
Output
4
-1
0
42
2
-1
100000000
40741153
1772D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)