cf/mirror

Labyrinth

CF
1666L1800· expert3s512 MB⌨ stdin/stdout

Examples

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