![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
字符串
Ramzes_666_fan
这个作者很懒,什么都没留下…
展开
-
E-Sort String
题目链接:https://ac.nowcoder.com/acm/problem/17244 Eddy likes to play with string which is a sequence of characters. One day, Eddy has played with a stringSSfor a long time and wonders how could make it more enjoyable. Eddy comes up with following procedure..原创 2020-05-13 21:56:50 · 229 阅读 · 0 评论 -
字符串hash
字符串hash: 就是把一个字符串通过函数 f 映射为一个整数。从而达到通过比较整数来确定字符串的出现次数。 hash公式: const int maxn=1e6+100; typedef unsigned long long ull; ull Hash[maxn]; ull f=33333;/*定义f为一个质数*/ int main() { char s[maxn]; for(int i=0;i<=maxn-1;i++) { Hash[i]=Hash[i翻译 2020-05-13 20:51:18 · 133 阅读 · 0 评论