The Great Game
CodeChefOpen on judge ↗
Sherlock and his arch-enemy Moriarty are playing a game. Sherlock must defeat Moriarty to save the world. The game consists of a 2-D board of dimensions NxN. The rows of the board are numbered 1 to N from top to bottom and the columns are numbered 1 to N from left to right. For each row, there is a button Ri to the left of that row and for each column, there is a button Ci to the top of that colu
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