Lost in the Cave
CodeChefOpen on judge ↗
Rossiana Gones is on another adventure where he (yes, he) has stumbled upon an ancient cave. There are some ancient gold coins scattered across the cave in some of the cells of the cave. Given the layout of the cave, and Rossiana’s initial cell position, you will have to compute the maximum number of coins he can collect, and minimize the number of moves to do so. That is, the highest priority is
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