Getting Runtime Error on ACPC10D spoj problem

Правка en1, от samurai123, 2016-12-31 14:43:59

Happy new year to everyone, I was solving ACPC10D problem from spoj LINK but I am constantly getting RTE 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.

Теги dp, simple dp

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский samurai123 2016-12-31 14:49:54 8 Tiny change: 'tting RTE while sub' -> 'tting RTE SIGSEGV while sub'
en1 Английский samurai123 2016-12-31 14:43:59 596 Initial revision (published)