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:自己写的n^2logn算法tle,看了解题报告说有nlogn算法,但没有看懂,求大牛指点啊

Posted by tasty at 2014-08-09 19:07:19 on Problem 1206
In Reply To:自己写的n^2logn算法tle,看了解题报告说有nlogn算法,但没有看懂,求大牛指点啊 Posted by:abcd0311 at 2009-03-11 17:38:07
> 自己写的n^2logn算法tle,看了解题报告说有nlogn算法,但没有看懂,求大牛指点啊
没读错题的话, 感觉只需要10次最短路就行了,因为ri<=10,所有相等的 ri 打包进行一次 dijkstra 算出总的最短路最小值就行了。。。。

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