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:2263In Reply To:2263 Posted by:wolfshow at 2005-06-14 14:41:36 > 这道题不就是用dijkstra吗,为什么不能过啊? 用floyd可以过。。 for(int x=1;x<=n;x++) for(int i=1;i<=n;i++) for(int j=1;j<=n;j++) g[i][j]=max(g[i][j],min(g[i][x],g[x][j])); Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator