cf/mirror

Twin Permutations

CF
1831A800· newbie1s256 MB⌨ stdin/stdout

Examples

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