哈希Hash

字符串 hash

$$ hash(l,r)=hash(1,r)-hash(1,(l-1))\times p^{r-l+1} $$
posted @ 2023-01-07 20:13  Ciaxin  阅读(25)  评论(0)    收藏  举报