随笔分类 -  字符串

摘要:哈希表 例题: 不重复数字 #include <cstdio> #include <cstring> #include <iostream> #include <algorithm> using namespace std; typedef long long ll; const int N=5e5 阅读全文
posted @ 2020-11-10 12:06 ke_xin 阅读(80) 评论(0) 推荐(0)
摘要:hash base 是个进制,一般都要用素数(逆元方便)——越大越好 例如131,1E9+7,1E9+9,232,264,23333333333333 模板 单哈希 #include <cstdio> #include <iostream> #include <algorithm> #include 阅读全文
posted @ 2020-11-03 09:15 ke_xin 阅读(28) 评论(0) 推荐(0)