cf/mirror

Handshakes

CF
534D1900· candidate master1s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
5
2 1 3 0 1
Output
Possible
4 5 1 3 2
Sample 2of 3
Input
9
0 2 3 4 1 1 0 2 2
Output
Possible
7 5 2 1 6 8 3 4 9
Sample 3of 3
Input
4
0 2 1 1
Output
Impossible
534D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)