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

Re:2263

Posted by talenth1 at 2011-07-16 22:27:31 on Problem 2263
In 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:
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