Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Use dynamic programming, define DP[i][j][k]: The maximum cherries that both robots can take starting on the ith row, and column j and k of Robot 1 and 2 respectively.