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

朴素的LCS不能过么?

Posted by raymond8023 at 2009-04-03 11:47:59 on Problem 1159
	x=lcs(i-1,j-1)+((a[i]==b[j])?1:0);
	y=lcs(i-1,j);
	z=lcs(i,j-1);
	t[i][j]=max(x,y,z);

对找过的ij没有再找了,为什么TLE?

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