Debug KMP solution

Правка en1, от proofbycontradiction, 2017-10-21 22:51:53

Hi codeforces,

I was attempting to solve the KMP problem below, but I'm failing on testcase 3.When I run the testcase locally, I am getting the correct answer on my machine. Could somebody help spot the bug that is probably causing undefined behaviour?

Problem: http://mirror.codeforces.com/contest/471/problem/D Solution: http://mirror.codeforces.com/contest/471/submission/31585259

Теги kmp, bug in code

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский proofbycontradiction 2017-10-21 22:51:53 399 Initial revision (published)