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 choupigwb at 2008-11-07 10:19:23 on Problem 1935 and last updated at 2008-11-07 10:19:54
In Reply To:给后面的人一点提示 Posted by:tanbokan at 2008-09-16 09:41:55
以K为根建树,遍历找出必须要经过的边,得边权和为sum,
要使dis最短,则有一点可以不返回,那点不就是要到的点
中离K最远的city吗?记为MAX,则mindis=sum*2-MAX。
为什么错了,大牛们看看~》。

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