Codeforces celebrates 10 years! We are pleased to announce the crowdfunding-campaign. Congratulate us by the link ×

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


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