Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:这题的输出让我非常无语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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator