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:有没不用Floyd 做的啊.........网上翻了半天都是一样的...小弟代码如下 希望指点一下

Posted by Ontheline at 2009-06-09 21:52:04 on Problem 3660
In Reply To:有没不用Floyd 做的啊.........网上翻了半天都是一样的...小弟代码如下 希望指点一下 Posted by:jp_test at 2009-03-20 20:48:57
我就没用Floyd做的,我的就是简单的bfs 加上dfs求连通到的节点,然后加和,等于n-1的就记入在内.

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