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:1月份做的,之前一直RE,线段树开了3倍,今天来重新想这题,试着把数组开大,尽然过了。原来要开4倍啊。唉,以前开3倍都对的。

Posted by tasty at 2013-09-06 22:04:08 on Problem 1765
In Reply To:1月份做的,之前一直RE,线段树开了3倍,今天来重新想这题,试着把数组开大,尽然过了。原来要开4倍啊。唉,以前开3倍都对的。 Posted by:yygy at 2013-09-06 16:27:59
貌似线段树内存的上界是 >=2*N的最小的 2的幂,所以最好开4倍是比较安全的

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