Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

谢谢xiaxia同学^-^,不是KMP的问题,而是其它的问题,唉,同一个错误已经犯了第三次了,我真是没救了

Posted by anotherh at 2006-03-27 09:16:22 on Problem 2752
In Reply To:Re:晕,KMP写的出错了,谁帮忙看一下,或给组数据测测 Posted by:xiaxia at 2006-03-26 23:11:11
> 我的这样
> next[0] = -1;
> 	while(i < len)
> 	{
> 		if(j == -1 || S[i] == S[j])
> 		{		
> 			++ i;
> 			++ j;		
> 			next[i] = j;
> 		}
> 		else
> 			 j = next[j];
> 	}
> 

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator