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 anyone_1 at 2010-04-07 21:35:38 on Problem 1797
In Reply To:这题的输出让我非常无语 Posted by:anyone_1 at 2010-04-07 21:32:42
顺便说一下这题
我的思路是最短路算法的变种,可以运用最短路的思想在扩展节点(松弛操作)的时候改变可行条件
原:dis[j]>dis[i]+g[i][j]
改:dis[j]<min(dis[i],g[i][j])
初始dis[1]=oo
除了floyd应该都行吧。

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