cf/mirror

Permutation Restoration

CF
1701D1900· candidate master4s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
4
0 2 0 1
2
1 1
5
0 0 1 4 1
3
0 1 3
Output
2 1 4 3
1 2
3 4 2 1 5
3 2 1
1701D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)