[Help] Debug KMP ICPC problem — Fibonacci Words

Revision en1, by lvisbl_, 2025-01-22 22:19:05

Hi everyone, recently I encounter this problem Fibonacci Words and I can not find bug in my code. I have try to generate many test cases and compare the result again the correct code, and I found not any single test case failed. Please help to debug my code, I'm really depressed now. Currently I failed test case number #8 in codeforces.

Here is my code:

Code
Tags kmp

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English lvisbl_ 2025-01-22 22:26:43 773
en1 English lvisbl_ 2025-01-22 22:19:05 4184 Initial revision (published)