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

把floyd的判断条件改下if(MAX(mat[i][k],mat[k][j])<mat[i][j]) mat[i][j]=MAX(mat[i][k],mat[k][j]);就可以了~题目是说取路上最大的作为权值也~

Posted by majia5 at 2008-08-07 13:43:53 on Problem 3615
In Reply To:Re:Floyd秒杀 Posted by:383414454 at 2008-07-19 23:50:31
rt

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