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 151052 at 2016-07-07 17:24:11 on Problem 1273
In Reply To:Re:ISAP如果一开始bfs就错!为什么 Posted by:151052 at 2016-07-07 17:21:04
是这样的,bfs前,我把d值全部初始化为-1用来标记"还没有搜过",事实上不能用-1来标记,要用正无穷来标记!

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