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 forsona at 2010-10-15 15:35:49 on Problem 2387
这道题目,只要算出1到N的最短路径就行了
也就是说题目只保证1到N可连通,并不保证其他点也是连通
所以Dijkstra只要发现Dis[n](或者按照题意Dis[1])改变了,就可以跳出程序了
Wa++

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