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 jiqiujia at 2013-04-07 20:10:14 on Problem 3411
In Reply To:此题中,每条路可以经过不超过三次。 Posted by:nepepl at 2010-05-14 16:23:34
> 每条路的上限设置为3的时候,用了200多ms,设置为2的时候,16ms。。。特别要注意当N=1的时候,要输出0,在这个情况下WA了3,4次


用dfs,上限为2,0MS.多谢楼主

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