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 knuthocean at 2005-03-16 10:02:49 on Problem 1065
In Reply To:思路是有了,但是总感觉极端情况下会超时呀!!!谁有最坏情况下O(nlogn)的算法 ? Posted by:knuthocean at 2005-03-16 07:52:41
我计算了一下,如果这一题出极端的数据,比如
l1,w1 l2,w2 .....l5000,w5000
且l1<l2<l3<l4<.....<l5000
  w1>w2>w3>w4>......>w5000
我的程序要10s以上,但测试数据竟让我AC了

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