PedroCastillo's blog

By PedroCastillo, history, 6 years ago, In English

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.net/contest/271/problem/D

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

Full text and comments »

  • Vote: I like it
  • +6
  • Vote: I do not like it