Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

线段树 VS 树状数组

Posted by mark1989 at 2009-10-04 14:40:41 on Problem 2182
线段确实很强大,而且似乎特别受大家欢迎。不过能用树状数组的题最好尽量用树状数组做。
这题我用线段树的耗时是32ms,改写树状树组后耗时0ms,而且代码容易写一些。

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator