cf/mirror

Merge Not Sort

CF
1906E1900· candidate master1s1024 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
3
3 1 4 5 2 6
Output
3 1 6
4 5 2
Sample 2of 3
Input
4
1 2 3 4 5 6 7 8
Output
2 3 5 7
1 4 6 8
Sample 3of 3
Input
2
4 3 2 1
Output
-1
1906E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)