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

不要排序,就好像xiaomi说的那样做就行了

Posted by frkstyc at 2005-07-07 20:53:59 on Problem 1655
In Reply To:谁能把这题的算法讲的详细些? Posted by:00403022 at 2005-07-07 20:51:20
> 我是先取一节点作头结点拓扑排序,再对得到的拓扑序列倒退求各点的balance值,好像时间复杂度是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