Check Mate
CodeChefOpen on judge ↗
Chef likes to play chess and he seeks you help Consider an $8x8$ chessboard. You are given the positions of the king and queen of opposite teams. You have to find out whether the king is currently in check or not. ###Input - Two spaced integers $x_1$ and $y_1$ denoting the coordinates of the king on the chessboard - Two spaced integers $x_2$ and $y_2$ denoting the coordinates of the queen on t
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