White and Black
CodeChefOpen on judge ↗
You are given chessboard with rows numbered from $1$ to $n$ from bottom to top and columns are numbered from $1$ to $m$ from left to right. Every cell on the chessboard can be represented as $(x,y)$ where $x$ is the column number and $y$ is the row number. The $(1,1)$ coordinate of the chessboard is white. The coordinate pair $(a,b,c,d)$ represents a rectangle formed where $(a,b)$ is the bott
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