Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

Getting Runtime Error on ACPC10D spoj problem
Разница между en1 и en2, 8 символ(ов) изменены
Happy new year to everyone,↵
I was solving ACPC10D problem from spoj [LINK](http://www.spoj.com/problems/ACPC10D/) 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](http://ideone.com/n5wGBW)? 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.

История

 
 
 
 
Правки
 
 
  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)