cf/mirror

Polycarp Restores Permutation

CF
1141C1500· specialist2s256 MB⌨ stdin/stdout
#math

Examples

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