
Hash
文章平均质量分 57
sortmin
这个作者很懒,什么都没留下…
展开
-
Codeforces Beta Round #4 (Div. 2 Only) C. Registration system hash
C. Registration systemTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/problemset/problem/4/CDescriptionA new e-mail service "Berlandesk" is going to be opened in Berland in the near fu...原创 2018-06-26 01:34:45 · 202 阅读 · 0 评论 -
UVAlive 6959 Judging hash
JudgingTime Limit: 20 Sec Memory Limit: 256 MB题目连接http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=114147DescriptionThe NWERC organisers have decided that they want to improve the automati...原创 2018-06-26 02:07:35 · 250 阅读 · 0 评论 -
HDU 2609 How many(最小表示法模板+set判重)
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=2609 题意: 给定n个01组成的字符串,每个字符串是一个环状的结构,求可以经过循环旋转,最后不同的串有多少个。 题解: 求出每个字符串的最小表示,然后求hash值,set去重即可。 AC代码: #include<iostream> #include <algorith...原创 2018-08-30 03:01:01 · 219 阅读 · 0 评论