cf/mirror

Quartet Swapping

CF
2101B1800· expert2s256 MB⌨ stdin/stdout

Examples

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