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

他妈的测试数据太弱了,O(n^2)居然都可以过!!!

Posted by saturnalia at 2005-08-13 16:52:04 on Problem 1828
In Reply To:Re:这个题好象没有人问~不好意思,能不能给个提示! Posted by:atlas_of_rruucc at 2004-09-12 22:56:23
> 这样是比较慢
> 可以考虑先把点按Y值从大到小排序
> 然后从大到小扫描一边
> 扫描时如果该点X值大于之前X的最大值答案就加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