字符串——經常使用進制hash

如下都只對一個字符串hash,h[n]爲該串的hash值web 單hash typedef unsigned long long ULL; const ULL base = 13131;//2333333 const ULL mod = 1e9+7; const int maxn = 1e5+50; ULL h[maxn], p[maxn]; char a[maxn]; int n; void
相關文章
相關標籤/搜索