Chef loves Chocolates
CodeChefOpen on judge ↗
Chef Loves Chocolates !! Chefland is a 2-Dimensional plot. Chef is currently at the top-left corner and has $0$ chocolates. Every cell of the plot contains some integer number of chocolates. Chef can only move either to right, down or diagonaly down. On every visited cell if the cell has a positive number , Chef gains that number of chocolates and if the cell has a negative number , Chef looses
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