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: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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator