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

暴力or tsp

Posted by hbl at 2010-04-30 17:16:15 on Problem 2688
先预处理对于任意的目标点之间的最短距离,然后就是典型的tsp问题。这道 题目目标点太小,所以可以暴力枚举所有排列顺序,500ms就过了,不过也可以dfs,加上dling优化就因该会快很多。

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