会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
can丶
博客园
首页
新随笔
联系
管理
订阅
2017年11月8日
//poj 2752 Seek the Name, Seek the Fame 求子串前缀跟后缀一样的各种情况
摘要: #include<stdio.h>#define M 1000010char s[M],t[M];int next[M],sum;void getNext()//求next数组{ int i,j; next[0]=-1; for(i=1,j=-1;s[i];i++){ while(j!=-1&&s[
阅读全文
posted @ 2017-11-08 22:35 can丶
阅读(183)
评论(0)
推荐(0)
编辑
公告