![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
KMP
.GG_Bond.
这个作者很懒,什么都没留下…
展开
-
KMP
#include<stdio.h>#include<string.h>int next[105] = {0};void get_next(char p[]){ int len = strlen(p); next[0] = -1; int j; for(j = 1; j < len; j++) { int i = ne...原创 2020-04-07 16:15:17 · 122 阅读 · 0 评论 -
HDU 3746 Cyclic Nacklace (最小循环节、循环周期)
HDU 3746 Cyclic Nacklace-012传送门:http://acm.hdu.edu.cn/showproblem.php?pid=3746Problem DescriptionCC always becomes very depressed at the end of this month, he has checked his credit card yesterday...原创 2019-08-26 16:24:31 · 147 阅读 · 0 评论 -
HDU 2752 Seek the Name, Seek the Fame(next数组的理解)
HDU 2752 Seek the Name, Seek the Fame013传送门:http://poj.org/problem?id=2752DescriptionThe little cat is so famous, that many couples tramp over hill and dale to Byteland, and asked the little cat t...原创 2019-08-26 19:07:38 · 127 阅读 · 0 评论