2017 ACM/ICPC Asia Regional Shenyang Online [Cloned]超级简单的LIS
#includeintmain(){intn,k,a[100005],b,l,r,top1,top2,mid,c[100005];intt;scanf("%d",&t);while(t--){top1=0;top2=0;a[0]=999999;c[0]=-1;scanf("%d%d",&n,&k);for(inti=1;i=c[top2]){top2++;c[top2]=b;}else{l=1;r