Strange Runtime error

Revision en1, by myaw, 2016-05-04 14:22:23

Hi everyone.

I was trying to solve small input for this problem using recursive dp.

But it gives a strange runtime error when n >= 180000.

this my code

Any helps.

Tags runtime error, recursion, dp, gcj

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English myaw 2016-05-04 14:22:23 284 Initial revision (published)