1
0
Fork 0

Update string/hash_vec.cc

Signed-off-by: subcrip <contact@subc.rip>
This commit is contained in:
subcrip 2024-05-27 22:52:42 +08:00
parent 89e07ebc8a
commit 58745e69df
1 changed files with 2 additions and 2 deletions

View File

@ -52,8 +52,8 @@ struct hash_vec {
} }
hash_vec(size_t maxn) { hash_vec(size_t maxn) {
clear(); clear();
MLL<MDL1> c1 = 1; MLL<MDL1> c1 = power1.size() ? power1.back() * b : 1;
MLL<MDL2> c2 = 1; MLL<MDL2> c2 = power2.size() ? power2.back() * b : 1;
for (int i = power1.size(); i < maxn; ++i) { for (int i = power1.size(); i < maxn; ++i) {
power1.push_back(c1); power1.push_back(c1);
power2.push_back(c2); power2.push_back(c2);