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

...给的数据都过了...还是WA...好吧 是OJ的问题...55555 附思路

Posted by blackerJT at 2009-09-30 00:44:37 on Problem 1062
思路设酋长的rank为X,那么把所有顶点的rank分为这样若干个区间
[ x-m,x] ... [ x, x+m]
每个区间中都包含有一些点 把这些点建图 然后求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