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

嗷呜,此题被本龙搞定了...

Posted by windyrobin at 2008-09-12 12:47:09 on Problem 3667
3667	Accepted	3280K	594MS	C++	4847B
真不容易呀!
一百哪一百遍!!

tip :
线段树每个节点 记录 3个参数 :
lSpace :左端开始的空余量
rSpace :右端开始的空余量
mSpace : 最大空余量(可能在中间)

如 
~~~~**~~~~~**~~
lSpace = 4
rSpace = 2
mSpace = 5

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