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

如果用最短路解的话,建议不要用vector,很容易超时

Posted by a280920481 at 2019-01-26 22:44:59 on Problem 1201
由于边的总数容易控制,建议把所有边放在一个数组里,按起点排序,最后把边对应到每一个节点上。

不知道还有什么好方法没有。

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