Please read the new rule regarding the restriction on the use of AI tools. ×

Dice369's blog

By Dice369, history, 6 weeks ago, In English

During string hashing I have been trying to use single hash only(learned recently), I just use coprime for base and mod. Can I get in trouble for not using double hash. Thanks in advance for any helpful reply

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

»
6 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Yes, single hashing is easy to hack during contest time!

»
6 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

You can use my pre-published template for Double Hash.