cf/mirror

Amazing Trick

CF
1773A1900· candidate master3s1024 MB⌨ stdin/stdout

Examples

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