Collect It!
CodeChefOpen on judge ↗
*This time the world has a problem, and Raghu needs to solve it. But can he?* You want to be a savior of people since everyone else is doing everything else. The world is flat, and it is definitely a rectangular grid of shape $n\times m$. Shriram's hospital is located at $(n, m)$, while Raghu is standing at the origin. The hospital has an immediate need for masks (for doctors and patients) s
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