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:只要图里面不含割点就不会有桥,所以只要判断是否有割点就好了

Posted by tudejian at 2009-01-06 21:36:02 on Problem 3713
In Reply To:只要图里面不含割点就不会有桥,所以只要判断是否有割点就好了 Posted by:yu_ at 2009-01-04 14:24:29
其实也不是的,例如数据
3 3
0 1
1 2
2 0
但题目好像没有这样的数据,我使用求块的方法,如果删除某个节点后,剩余图中的块的数目大于1,就返回NO,否则就是YES,这样做是WA的,不知道为什么,但使用求割点的方法就AC。

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