cf/mirror

Cycle In Maze

CF
769C1700· expert15s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
2 3 2
.**
X..
Output
RL
Sample 2of 3
Input
5 6 14
..***.
*...X.
..*...
..*.**
....*.
Output
DLDDLLLRRRUURU
Sample 3of 3
Input
3 3 4
***
*X*
***
Output
IMPOSSIBLE
769C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…