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

因为题目的n和你spfa中的n不一样,spfa中n为松弛次数,为所有顶点数-1,这个题目中总顶点数为n+1

Posted by wangjunyong at 2009-10-05 23:57:01 on Problem 1364
In Reply To:为什么松弛> N次就能AC,松弛>=N次就WA呢? Posted by:1080310620 at 2009-08-09 10:47:00


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