Please see my soln and tell why am i getting WA.
Wrong Ans on Spoj on my soln
Hey @Doctor_Insult
There is some problem with ur dp array
initialize it like this
dp =[[-1 for i in range(101)] for i in range(101)]
Please see my soln and tell why am i getting WA.
Hey @Doctor_Insult
There is some problem with ur dp array
initialize it like this
dp =[[-1 for i in range(101)] for i in range(101)]