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

哦,我明白了,把图反过来建。如果a<b,则从b到a有一条边。然后,拓扑排序的时候,优先队列里总是让大的先出队。这样求出来的就是答案的反序。

Posted by ImLazy at 2008-09-17 19:04:19 on Problem 3687
In Reply To:我不明白您说的逆序找是什么意思,能说明一下吗? Posted by:ImLazy at 2008-09-17 18:29:23


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