摘要: http://acm.hdu.edu.cn/showproblem.php?pid=3564(1)插入元素;求最长上升子序列。他人具体代码:View Code #include<stdio.h>#include<string.h>#define lowbit(i) (i&(-i))const int MAXN=100005;const int MAXLOG=17;int B[MAXN],pos[MAXN];int N;void update(int i,int value){ //维护空位的个数 for(;i<=N;i+=lowbit(i)) B[i]+= 阅读全文