Laughing

 

2012年3月22日

hdu 1358

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1358#include<stdio.h>#include<string.h>int next[1000001],i,j,n,tem,k;char a[1000001];void get_next(){ j=next[0]=-1; for(i=0;i<n;) { if(j==-1||a[i]==a[j]) { i++;j++; //if(a[i]==a[j]) next[i]=next[j]; //else next[i]=j; next[i]=j; //if(j>0) pr 阅读全文

posted @ 2012-03-22 21:52 巨富一生 阅读(137) 评论(0) 推荐(0) 编辑

导航