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 |
线段树 VS 树状数组线段确实很强大,而且似乎特别受大家欢迎。不过能用树状数组的题最好尽量用树状数组做。 这题我用线段树的耗时是32ms,改写树状树组后耗时0ms,而且代码容易写一些。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator