Gold Grid Problem

Problem Code;
https://hack.codingblocks.com/app/contests/1338/793/problem

Code Link:

I am not getting correct output, can you please me in this problem.

@mgfags
There is mistake in line 55, change it to int ans3 = dp[n][j] - dp[i][j];
All testcase will pass

It was a silly mistake.Just overlooked it !!! Thanks for your help…

1 Like