Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
既然水。。。比比谁的短。。。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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator