Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:因为x的坐标有可能为0,如果x=0的时候你要将这个点加入的话你会发现出现了死循环In Reply To:因为x的坐标有可能为0,如果x=0的时候你要将这个点加入的话你会发现出现了死循环 Posted by:Sempr at 2007-01-01 14:47:26 > > while (idx<MAXN){ > arr[idx]+=diff; > idx += lowBit(idx); // 如果idx=0,那么这个地方idx将永远是0 > } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator