摘要: http://acm.uestc.edu.cn/problem.php?pid=1558 1 #include 2 #include 3 #include 4 using namespace std; 5 #define lson l,m,rt>1; 32 build(lson); 33 build(rson); 34 } 35 int binsearch1(int l,int r,int num,int &pos) 36 { 37 if(l>r) 38 return pos; 39 int m=(l+r)>>1; 40 if(n... 阅读全文