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 frkstyc at 2005-05-01 11:52:13 on Problem 1423
In Reply To:Re:图论就不是数学了么? Posted by:JiangLY at 2005-05-01 11:48:54
把输入一次全读进来,排个序减少重复计算,估计直接加对数也可以(O(n)),还可以多做几次乘法再对数(O(n/logn))。

> 这题要O多少的才能过?

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