getting WA with SPOJ problem LISA

Revision en1, by svg_af, 2016-07-19 15:56:20

hello there

this problem is a classic dp problem and it's not so hard to come up with the solution

but i keep getting WA ... my code works on every testcase i throw a it

if someone could help me find my error it would be great :D

here's the code

Tags dynamic programming, spoj, wrong answer

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English svg_af 2016-07-19 15:56:20 323 Initial revision (published)