摘要: int low_bit(int x){ return x&-x;}void add(int pos,int val){ while(pos<=maxn) { c[pos]+=val; pos+=low_bit(pos); }}int sum(int pos){ int ans=0; while(po 阅读全文