can any one tell me what is the problem with this code?
50% test cases accepted successfully but other 50% are not.
Grid-H at AtCoder
@hrit04,
Replace dp[i][j]=dp[i-1][j]+dp[i][j-1];
By dp[i][j]=(dp[i-1][j]%MOD+dp[i][j-1]%MOD)%MOD;
, where MOD is the number you want to take modulo with.