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

Re:既然水。。。比比谁的短。。。

Posted by dakecaoxin at 2009-09-13 15:16:00 on Problem 2533
In Reply To:既然水。。。比比谁的短。。。 Posted by:niuzheng168 at 2009-07-21 11:37:14
> 0.3K
> 核心代码
> for(i=0,max=0;i<n;i++)
> 	lis[i]=1;
> 	for(j=0;j<i;j++)
> 		if(a[i]>a[j]&&lis[j]+1>lis[i])
> 		lis[i]=lis[j]+1;

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