随笔分类 - 字符串
摘要:哈希表 例题: 不重复数字 #include <cstdio> #include <cstring> #include <iostream> #include <algorithm> using namespace std; typedef long long ll; const int N=5e5
阅读全文
摘要:hash base 是个进制,一般都要用素数(逆元方便)——越大越好 例如131,1E9+7,1E9+9,232,264,23333333333333 模板 单哈希 #include <cstdio> #include <iostream> #include <algorithm> #include
阅读全文

浙公网安备 33010602011771号