← All problemsSign in

Check Mate

CodeChefRating 1853Open on judge ↗

You are given a standard $8 \times 8$ chessboard which has exactly $3$ pieces placed on it - $2$ black rooks and $1$ white king. The rows are numbered $1$ to $8$ from bottom to top, and the columns are numbered $1$ to $8$ from left to right. The cell at the intersection of the $i$-th column and $j$-th row is denoted $(i, j)$ (like the coordinate system on the $xy$-plane). Is it possible for the w

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