POJ 1887 Testing the CATCHER(LIS的反面 最大递减子序列)(二)

2015-07-20 17:26:02 · 作者: · 浏览: 14
x,ca=0; while(scanf("%d",&x)) { if(x==-1) break; n=0; a[n++]=x; while(1) { scanf("%d",&x); if(x==-1) break; a[n++]=x; } dp[0]=1; int ans=1; int temp; for(i=1;i a[i]&&temp