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 |
用求最短路的O(n^3)的算法改改就可以了。for k=1:n for i=1:n for j=1:n if( p[i][j] > max(p[i][k],p[k][j]) ) p[i][j] = max(p[i][k],p[k][j]) Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator