Saviours Play Game
CodeChefOpen on judge ↗
Time is ticking fast and Mumbai is at risk. Sartaj and Majid need to save the city. In order to get themselves ready, they decided to play a special game. The game is represented as a matrix A with $N$ rows and $M$ columns and $N$*$M$ cells. Let the cell $A[i][j]$ represents the points gain when some player reaches $ith$ row and $jth$ column. We are assuming 1-based indexing. Sartaj starts at
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