cf/mirror

New Year Permutation

CF
500B1600· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
7
5 2 4 3 6 7 1
0001001
0000000
0000010
1000001
0000000
0010000
1001000
Output
1 2 4 3 6 7 5
Sample 2of 2
Input
5
4 2 1 5 3
00100
00011
10010
01101
01010
Output
1 2 3 4 5
500B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…