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 ogogo at 2007-10-06 22:22:43 on Problem 3418
就是分开口向上和向下两种
按最低点从大到小排个顺序
然后一个一个添加,由于区间端点的y值按x是单调的,所以2分找交点
插入复杂度O(log n) 查询 O(1)。

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