Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

Getting Runtime Error on ACPC10D spoj problem

Revision en2, by samurai123, 2016-12-31 14:49:54

Happy new year to everyone, I was solving ACPC10D problem from spoj LINK but I am constantly getting RTE SIGSEGV while submitting. I have tried all the testcases which are mentioned in the forum and my solution gives correct output to every testcase. Then Can you help me in finding bug the code CODE? The people in the forum commented that it is not possible to solve it with top down approach. Howeever it is simple dp problem and my solution seems to be correct. So please, help me out.

Tags dp, simple dp

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English samurai123 2016-12-31 14:49:54 8 Tiny change: 'tting RTE while sub' -> 'tting RTE SIGSEGV while sub'
en1 English samurai123 2016-12-31 14:43:59 596 Initial revision (published)