摘要: 字符串哈希把字符串变为一个哈希值,可以线性的比较字符串是否相等 时间复杂度 : 预处理 \(O(n)\),查询 \(O(1)\) 样例 typedef unsigned long long ull; cosnt int p = 131; ull get(string &s) { ull res = 阅读全文
posted @ 2025-03-25 21:01 he_jie 阅读(37) 评论(0) 推荐(0)