| ||||||||||
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 |
我是靠找强连通分支解决的。In Reply To:这题思路是什么样的? 提示一下~~~ Posted by:df7009 at 2007-08-17 11:28:24 用dfs,搜索出满足下列两个条件之一的分支的数量count: 一,改分支只有一个结点; 二,该分支是强连通的; 然后这么想:这些分支里的每一个只要随便用一条边连到另外一个分支上,整个图就是强连通的了。 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator