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 frkstyc at 2006-12-03 19:55:10 on Problem 1724
In Reply To:?.? Posted by:humanjustic at 2006-12-03 19:51:10
> 没啊,我比较傻,保存了从一个顶点到另一顶点的所有边,反正边的总数才10000..
> 然后从小到大排序,接着BFS...

bfs的时候要保证一下顺序吧,你的具体逻辑我不清楚,不过做成a*的样子是可以的

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