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:这题应该怎么做呢?我用dijkstra+最小堆,但是tle了。-,-

Posted by pop3836 at 2008-10-17 21:53:16 on Problem 1511
In Reply To:这题应该怎么做呢?我用dijkstra+最小堆,但是tle了。-,- Posted by:enzepon at 2008-05-14 22:43:32
> 建了正向和反向两副图,分别用dijkstra+最小堆来求解,tle不行了,过了的大大们教我下吧。
> 
> thx..

正反用dijkstra不会超时,我用dijkstra + 堆 + 静态链表,中间wa了一次,结果改成long long就过了,7000MS,不算快,可能SPFA更牛逼。。。

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