cf/mirror

Guess the Permutation

CF
618B1100· newbie2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
2
0 1
1 0
Output
2 1
Sample 2of 2
Input
5
0 2 2 1 2
2 0 4 1 3
2 4 0 1 3
1 1 1 0 1
2 3 3 1 0
Output
2 5 4 1 3
618B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)