New Year Permutation
500B1600· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
75 2 4 3 6 7 10001001000000000000101000001000000000100001001000
Output
1 2 4 3 6 7 5
Sample 2of 2
Input
54 2 1 5 30010000011100100110101010
Output
1 2 3 4 5
58%
500B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…