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:样例中那个210怎样算出来的?

Posted by StudyRush at 2009-11-03 12:59:58 on Problem 1511
In Reply To:样例中那个210怎样算出来的? Posted by:gz2001 at 2003-10-31 20:47:30
先是源点到各个点的最短路径,用邻接表+SPFA求一次,然后再是各个点到源点的最短路径,用逆邻接表+SPFA一次,将两次求的和加起来就行了。

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