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:对的啦。就是判断双连通。YU大牛告诉我的

Posted by xtu715 at 2009-01-03 15:48:14 on Problem 3713
In Reply To:我靠,终于过了。我来回答吧 Posted by:20053565 at 2009-01-03 11:10:05
> 我的做法是枚举删除一个点,然后看剩下的图里有没有割点和桥,有的话就不行
> 之前求割点和桥各dfs了一次 于是超时了 其实dfs一次 求出pre数组和low数组就行了
> 我不知道这么做对不对 只是直觉 所以就试了试 要是找到反例了告诉我

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