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 zgmf_x20a at 2008-12-18 19:45:51 on Problem 1511
In Reply To:这题应该怎么做呢?我用dijkstra+最小堆,但是tle了。-,- Posted by:enzepon at 2008-05-14 22:43:32
> 建了正向和反向两副图,分别用dijkstra+最小堆来求解,tle不行了,过了的大大们教我下吧。
> 
> thx..
我也是你这种情况,不用vector建邻接表就过了

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