A Way Out
CodeChefOpen on judge ↗
Hwang Jun-ho is trying to escape the building. He found a secret exit. But the path in front of him is said to be filled with land mines. If you look at the path from above, it looks like a grid made up of $X$ rows and $N$ columns (i.e. $X * N$ cells). He can jump from current cell to any other cell that shares an edge. Right now he is at starting position and he can jump on any cell of $1^{st}$ c
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start