← All problemsSign in

Journey of the Knight

CodeChefRating 1144Open on judge ↗

Chef has an $8 \times 8$ chessboard. He placed a knight on the square $(X_1, Y_1)$. Note that, the square at the intersection of the $i^{th}$ row and $j^{th}$ column is denoted by $(i, j)$. Chef wants to determine whether the knight can end up at the square $(X_2, Y_2)$ in **exactly** $100$ moves or not. For reference, a knight can move to a square which is: - One square horizontally and two s

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start