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 |
把floyd的判断条件改下if(MAX(mat[i][k],mat[k][j])<mat[i][j]) mat[i][j]=MAX(mat[i][k],mat[k][j]);就可以了~题目是说取路上最大的作为权值也~In Reply To:Re:Floyd秒杀 Posted by:383414454 at 2008-07-19 23:50:31 rt Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator