Pankaj Goes to Gym
CodeChefOpen on judge ↗
After watching the movie, its time for some gymming.So Pankaj and his best friend Saurabh go to the Gym to workout. The gym is a matrix with n lines and m columns. Let number a[i][j] represents the calories burned by performing workout at the cell of gym in the i-th line and the j-th column. Pankaj starts with workout located at line 1 and column 1. He needs to finish with workout at cell a[n][m
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