Any help on this problem? (String Hashing)

Revision en1, by PedroCastillo, 2018-11-26 09:52:40

Hi, I'm attempting this problem with string hashing.

It works well for small inputs but gives wrong answer on very large inputs.

Any help on what could be wrong?

Problem : https://codeforces.me/contest/271/problem/D

Submission: https://codeforces.me/contest/271/submission/46239564

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English PedroCastillo 2018-11-26 09:52:40 337 Initial revision (published)