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:大牛提示一下,怎么投机的啊?

Posted by decstery at 2006-03-28 12:10:21 on Problem 2595
In Reply To:大牛提示一下,怎么投机的啊? Posted by:Sempr at 2006-03-28 11:01:03
不用求闭包,把所有点按 大于c,小于c分成两组,
求上界
  找左边的上界和右边所有点形成的线段与x=c的交点的最大
  找右边的上界和左边所有点形成的线段与x=c的交点的最大
  然后去其中最大的
下界类似
复杂度O(n)

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