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

用线段树但WA或者RTE的注意

Posted by pyh119 at 2009-04-21 16:55:25 on Problem 2352
1.加入的线段必须是0~(x+1),否则当x=0时无法加入
2.由于第一条,原始线段不要只是0~32000,应该是0~32001或者更大
3.数组最少也是64002以上,或者干脆开大些没关系

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