Merge Not Sort
1906E1900· candidate master1s1024 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
33 1 4 5 2 6
Output
3 1 64 5 2
Sample 2of 3
Input
41 2 3 4 5 6 7 8
Output
2 3 5 71 4 6 8
Sample 3of 3
Input
24 3 2 1
Output
-1
58%
1906E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)