Santas Lost Map
CodeChefOpen on judge ↗
Just like every Christmas, Santa is planning to deliver gifts for all the kids around the world. While searching for the coordinates of all the houses he needs to visit, Santa realized he has forgotten to get the coordinates of one city altogether! Now Santa is distressed. Cause all he has is a $N × M$ grid $A$ full of $0s$ and $1s$ where the $1s$ represent a block of a house and $0s$ are no
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