摘要: problem Description 度熊手上有一本字段存储了大量的单词,有一次,他把所有单词组成了一个很长很长的字符串。现在麻烦来了,他忘记了原来的字符串是什么,神奇的是他竟然记得原来那些字符串的哈希值。一个字符串的哈希值,由以下公式计算得到: \(H(s)=\prod_{i=1}^{i\leq 阅读全文
posted @ 2020-07-17 21:50 ice--cream 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 题目描述 For a string \(x\) ,Bobo define \(x^{\infty}\) =xxx,,,which is x repeats for infinite times ,resulting in a string of infinite length. Bobo has t 阅读全文
posted @ 2020-07-17 19:15 ice--cream 阅读(99) 评论(0) 推荐(0) 编辑