Lucky Permutation Triple
303A1300· pupil2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
5
Output
1 4 3 2 01 0 2 4 32 4 0 1 3
Sample 2of 2
Input
2
Output
-1
58%
303A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
5
1 4 3 2 01 0 2 4 32 4 0 1 3
2
-1