cf/mirror

Disappearing Permutation

CF
2086C1300· pupil2s512 MB⌨ stdin/stdout

Examples

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