Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
暴力or tsp先预处理对于任意的目标点之间的最短距离,然后就是典型的tsp问题。这道 题目目标点太小,所以可以暴力枚举所有排列顺序,500ms就过了,不过也可以dfs,加上dling优化就因该会快很多。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator