Right-hand Rule
CodeChefOpen on judge ↗
Chef made a hedge maze on his rectangular garden. It is rectangular in shape with dimensions R × C, where R is the number of rows and C is the number of columns, both in meters, when viewed from the top. It is divided into a grid with R * C individual cells, each of size (1 meter) × (1 meter), and each cell is identified by two integers (i, j) denoting the row and column number of the cell, respec
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