文件名称:Post-Office
-
所属分类:
- 标签属性:
- 上传时间:2013-12-10
-
文件大小:514.05kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
poj1160
There is a straight highway with villages alongside the highway. The highway is represented as an integer axis, and the position of each village is identified with a single integer coordinate. There are no two villages in the same position. The distance between two positions is the absolute value of the difference of their integer coordinates.
Post offices will be built in some, but not necessarily all of the villages. A village and the post office in it have the same position. For building the post offices, their positions should be chosen so that the total sum of all distances between each village and its nearest post office is minimum.
You are to write a program which, given the positions of the villages and the number of post offices, computes the least possible sum of all distances between each village and its nearest post office. -There is a straight highway with villages alongside the highway. The highway is represented as an integer axis, and the position of each village is identified with a single integer coordinate. There are no two villages in the same position. The distance between two positions is the absolute value of the difference of their integer coordinates.
Post offices will be built in some, but not necessarily all of the villages. A village and the post office in it have the same position. For building the post offices, their positions should be chosen so that the total sum of all distances between each village and its nearest post office is minimum.
You are to write a program which, given the positions of the villages and the number of post offices, computes the least possible sum of all distances between each village and its nearest post office.
There is a straight highway with villages alongside the highway. The highway is represented as an integer axis, and the position of each village is identified with a single integer coordinate. There are no two villages in the same position. The distance between two positions is the absolute value of the difference of their integer coordinates.
Post offices will be built in some, but not necessarily all of the villages. A village and the post office in it have the same position. For building the post offices, their positions should be chosen so that the total sum of all distances between each village and its nearest post office is minimum.
You are to write a program which, given the positions of the villages and the number of post offices, computes the least possible sum of all distances between each village and its nearest post office. -There is a straight highway with villages alongside the highway. The highway is represented as an integer axis, and the position of each village is identified with a single integer coordinate. There are no two villages in the same position. The distance between two positions is the absolute value of the difference of their integer coordinates.
Post offices will be built in some, but not necessarily all of the villages. A village and the post office in it have the same position. For building the post offices, their positions should be chosen so that the total sum of all distances between each village and its nearest post office is minimum.
You are to write a program which, given the positions of the villages and the number of post offices, computes the least possible sum of all distances between each village and its nearest post office.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Post Office/Debug/Post Office.exe
Post Office/Debug/Post Office.ilk
Post Office/Debug/Post Office.pdb
Post Office/Post Office/Debug/BuildLog.htm
Post Office/Post Office/Debug/mt.dep
Post Office/Post Office/Debug/Post Office.exe.embed.manifest
Post Office/Post Office/Debug/Post Office.exe.embed.manifest.res
Post Office/Post Office/Debug/Post Office.exe.intermediate.manifest
Post Office/Post Office/Debug/Post Office.obj
Post Office/Post Office/Debug/vc90.idb
Post Office/Post Office/Debug/vc90.pdb
Post Office/Post Office/Post Office.cpp
Post Office/Post Office/Post Office.vcproj
Post Office/Post Office/Post Office.vcproj.PC-20111006IXRQ.Administrator.user
Post Office/Post Office.ncb
Post Office/Post Office.sln
Post Office/Post Office.suo
Post Office/Post Office/Debug
Post Office/Debug
Post Office/Post Office
Post Office
Post Office/Debug/Post Office.ilk
Post Office/Debug/Post Office.pdb
Post Office/Post Office/Debug/BuildLog.htm
Post Office/Post Office/Debug/mt.dep
Post Office/Post Office/Debug/Post Office.exe.embed.manifest
Post Office/Post Office/Debug/Post Office.exe.embed.manifest.res
Post Office/Post Office/Debug/Post Office.exe.intermediate.manifest
Post Office/Post Office/Debug/Post Office.obj
Post Office/Post Office/Debug/vc90.idb
Post Office/Post Office/Debug/vc90.pdb
Post Office/Post Office/Post Office.cpp
Post Office/Post Office/Post Office.vcproj
Post Office/Post Office/Post Office.vcproj.PC-20111006IXRQ.Administrator.user
Post Office/Post Office.ncb
Post Office/Post Office.sln
Post Office/Post Office.suo
Post Office/Post Office/Debug
Post Office/Debug
Post Office/Post Office
Post Office
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.