cf/mirror

Permutation Operations

CF
1746C1300· pupil2s256 MB⌨ stdin/stdout

Examples

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