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

可能不能缩点,这样搜索深度等于顶点个数也没用!内含数据

Posted by XKing at 2015-05-06 10:24:43 on Problem 2762 and last updated at 2015-05-06 10:25:07
In Reply To:判断一个有向无环图,觉得只要dfs看一下最大深度是否等于顶点个数就可以,但是怎么WA了这么多。。 Posted by:201292104 at 2014-09-29 12:21:01
4 4
1 2
1 3
2 4
3 4
No

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