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:此题的贪心算法,不知道对不对,欢迎讨论

Posted by ch4n7 at 2018-03-23 13:08:40 on Problem 1160
In Reply To:此题的贪心算法,不知道对不对,欢迎讨论 Posted by:jauhell at 2010-10-18 23:16:38
举一个反例,如果有6村庄,相邻村庄距离均为1,现在要设置两个邮局。那么请问,如何选择去掉的最大距离呢?所以,贪心还是有些情况无法给出正确答案的。

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