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

俺叫大飞,下面是我用一维数组和pre变量实现滚动数组的功能。

Posted by qifeifei at 2010-08-03 09:44:45 on Problem 1159 and last updated at 2010-08-03 09:51:13
	for(m=0;m<L;m++)
	{
		pre=0;
		for(n=0;n<L;n++)
		{	
			if(c[m]==c[L-1-n])
				max=pre+1;
			else
				max=LCS[n+1]>LCS[n]?LCS[n+1]:LCS[n];
			pre=LCS[n+1];
			LCS[n+1]=max;
		}
	}
希望大牛能够指点下。

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