cf/mirror

Find the Permutation

CF
2056B1300· pupil1.5s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
1
0
5
00101
00101
11001
00001
11110
6
000000
000000
000000
000000
000000
000000
Output
1
4 2 1 3 5
6 5 4 3 2 1
2056B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…