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

dfs用邻接表和邻接矩阵都莫名奇妙地超内存错误,后来判断是否有环才ac了……

Posted by xieofyu at 2012-08-31 11:13:55 on Problem 1062
跑了楼上提供的这组数据:
2 5
1000 2 2 
2 1
3 2
100 2 1
1 3
100 2 1
1 4
100 2 0
100 2 0

跑出了segmentation fault,才想到判断环路……

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