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:树状数组也超时的,那菜鸟只能无语,收山回林娶老婆!In Reply To:树状数组也超时的,那菜鸟只能无语,收山回林娶老婆! Posted by:longniu at 2009-08-17 10:16:13 就是你说的那里错了,你每次在区间上加数,都是nlogn的复杂度。 看 内功心法吧。有介绍,是线段树的经典题目。 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator