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 zengshiyuan at 2014-05-24 20:32:51 on Problem 3728
设x和y的公共祖先为z 从x往z走时 ans=max(ans,up[][])之外 还要ans=max(ans,当前这一段的最大值-走过的那些路的最小值) 这个值可能不会在up数组里 要切记

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