
ACM_字符串处理
文章平均质量分 63
温姑娘
这个作者很懒,什么都没留下…
展开
-
“玲珑杯”线上赛 Round #15 河南专场:F -- 咸鱼文章
F -- 咸鱼文章 Time Limit:1s Memory Limit:128MByte Submissions:418Solved:163 DESCRIPTION elttiL moT nwod eht teerts sllac ruo god " ehT peek god " . piZ si a peehs god . tuB nehw mo原创 2017-05-30 18:59:32 · 827 阅读 · 0 评论 -
KMP算法详细讲解
KMP算法超详细解释。读完必有收获。原创 2017-08-13 20:23:11 · 1247 阅读 · 9 评论 -
POJ 2001:Shortest Prefixes(字典树入门)
字典树入门题原创 2017-08-12 19:56:00 · 456 阅读 · 0 评论 -
HDU 1073:Online Judge
题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=1073 题目意思: 输入T,T组测试数据。 每组数据提供两个文件,每个文件以START开始,以END结束。 然后如果两个文件完全相等,输出Accepted 否则两个文件除去空格,换行符和tab键外完全相同,输出Presentation Error 否则输出 Wrong A原创 2017-10-14 18:02:01 · 381 阅读 · 0 评论 -
HDU 2087:剪花布条(KMP入门)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2087 AC代码: #include #include #include using namespace std; char text[1010]; char patten[1010]; int nex[1010]; void getNext() { int len原创 2017-11-22 20:47:07 · 255 阅读 · 0 评论 -
HDU 2203:亲和串
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2203 解题思路:第一个串连接两次成一个串,看第二个串是否在这个串中, 没用KMP,直接用STLfind函数,水题。 AC代码: #include #include #include #include #include #include using name原创 2017-11-22 20:52:32 · 325 阅读 · 0 评论 -
HDU 1711:Number Sequence (KMP入门)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1711 字符串的匹配变成了数字的匹配,思路一样。 AC代码: #include #include #include using namespace std; int text[1000010]; int patten[10010]; int nex[10010];原创 2017-11-22 21:19:03 · 227 阅读 · 0 评论 -
HDU 1686:Oulipo(KMP入门)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1686 题目翻译:给出一个模式串,给出一个文本串,求模式串在文本串中出现 了多少次? 解题思路:KMP入门 AC代码: #include #include #include using namespace std; char text[1000010]原创 2017-11-23 15:40:11 · 425 阅读 · 0 评论