Hint : wrong input constraint


#1

Take dp[200][20000] instead of dp[101][10001] .