Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
因为题目的n和你spfa中的n不一样,spfa中n为松弛次数,为所有顶点数-1,这个题目中总顶点数为n+1In Reply To:为什么松弛> N次就能AC,松弛>=N次就WA呢? Posted by:1080310620 at 2009-08-09 10:47:00 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator