2021,8, 24

\(hash\) 取模??

   ll  _hash = 1, _Hash = 1;
   for (int i = 1; i <= L; i++) _hash = _hash * seed + (a[i] - 'a' + 1) % mod;
   for (int i = 1; i <= L; i++) _Hash = _Hash * seed + (a[i] - 'a' + 1) % Mod;