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

Re:线段树怎么写能不超时呢?

Posted by zjut020 at 2009-03-07 11:00:36 on Problem 2528
In Reply To:Re:线段树怎么写能不超时呢? Posted by:qinhanlei at 2008-09-02 16:35:11
> 也就是说 20000 个有效点的坐标范围为(1~10000000), 映射成 数值范围为(0~20000) 的点,这样子就可以了.. 
> 
> 所以建立线段树的时候最多只要长度20000足矣, 
楼上,这里我不懂,为什么20000就够了,要建立一颗完全二叉树该是40000啊。。

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