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:终于AC啦!!!RE的注意一下

Posted by robinho364 at 2014-01-04 01:49:17 on Problem 3468
In Reply To:Re:终于AC啦!!!RE的注意一下 Posted by:lebulan at 2012-10-18 21:03:01
> 线段树至少要开3倍,两倍的是最少空间

应该是开4倍的空间,因为递归建树的时候可能会涉及到2 * k + 1和 2 * k + 2,虽然实际上已经结束了,当然直接剪掉下一步递归也可以。

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