摘要: DescriptionA numeric sequence of ai is ordered if a1 a[k],对任意的k#define MAX 1000 + 20int main(){ int i,j,n,ans,a[MAX],Lis[MAX]; while((scanf("%d",&n))!=EOF) { for(i = 0;i a[j] && Lis[j] + 1 > Lis[i]) Lis[i] = Lis[j] + 1; } } ans = Lis[0]; ... 阅读全文
posted @ 2013-12-09 19:40 neuzxy 阅读(202) 评论(0) 推荐(0) 编辑