Unexpected runtime error on testcase.

Правка en1, от ananth94, 2015-08-21 17:15:58

I've been trying to solve this problem — 385C - Медведь и простые числа , Bear and Prime Numbers. My solution gives a completely expected runtime error on Testcase#4. Can someone please explain to me as to why this is happening?

My solution: http://codeforces.net/contest/385/submission/12629174

Any help would be greatly appreciated.

Thanks in advance.

Теги c++11, runtime error, dynamic programming, practice

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский ananth94 2015-08-21 17:19:52 105 Solved
en1 Английский ananth94 2015-08-21 17:15:58 390 Initial revision (published)