Chef has a New Kitchen
CodeChefOpen on judge ↗
Chef recently bought a new kitchen. This kitchen is huge! It is rectangular in shape with dimensions W × H, where W is the width and H is the height, both in meters. The kitchen is divided into a grid with W * H individual cells, each of size (1 meter) × (1 meter), and each cell is identified by two integers (x, y) denoting the column and row number of the cell, respectively (1 ≤ x ≤ W and 1 ≤ y ≤
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