| ||||||||||
| 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 | |||||||||
救我一弱渣于两天未看懂这个思路中吧。。。。【树状数组思路】http://kenby.iteye.com/blog/962159
update(c1, s, d);
update(c1, t+1, -d);
update(c2, s, d*s);
update(c2, t+1, -d*(t+1));
他更新的时候为什么是update(c2, t+1, -d*(t+1));
那它s后多加了d*s 那t+1后面为什么不是update(c2,t+1,-d*s)呢
想了两天还是觉得很深奥,,,,囧。。。。
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator