-
chat mfc program win chat and we talk message
send friend bingo server
chat mfc program win chat and we talk message
send friend bingo server
- 2023-03-09 12:20:03下载
- 积分:1
-
WINCE应用层设计关于当前时间显示和当前时间获取
WINCE应用层设计关于当前时间显示和当前时间获取-WINCE application-layer design on the current time display and the current time to obtain
- 2022-02-14 18:47:55下载
- 积分:1
-
实现状态栏图标动画。
在状态栏中实现动画图标。-achieve the status bar icon animation.
- 2022-10-31 13:20:03下载
- 积分:1
-
将多条记录写进数据库
将多条记录写进数据库-will be written into the record a number of database
- 2023-02-24 16:40:04下载
- 积分:1
-
under the Virtual Print procedures, in place to achieve a variety of map file fo...
windows 2000下的虚拟打印程序,可以实现多种格式到位图文件的转换-under the Virtual Print procedures, in place to achieve a variety of map file format conversion
- 2023-07-13 20:00:02下载
- 积分:1
-
pascal语言基础知识,新手可以通过它了解到有关pascal的基础知识...
pascal语言基础知识,新手可以通过它了解到有关pascal的基础知识-pascal基础
- 2022-02-22 02:19:06下载
- 积分:1
-
IPC空链接测试代码,可以测试你想测试的的ip是否可以建立空链接!...
IPC空链接测试代码,可以测试你想测试的的ip是否可以建立空链接!-IPC air link test code, you can test you want to test the ip of the possibility of establishing air links!
- 2022-08-07 07:23:38下载
- 积分:1
-
用易语言制作的网页编辑小软件
用易语言制作的网页编辑小软件-easy language used in the production of small website editing software
- 2022-07-08 06:00:01下载
- 积分:1
-
算法实现题2
算法实现题2-3 邮局选址问题
« 问题描述:
在一个按照东西和南北方向划分成规整街区的城市里,n个居民点散乱地分布在不同的
街区中。用x 坐标表示东西向,用y坐标表示南北向。各居民点的位置可以由坐标(x,y)表示。
街区中任意2 点(x1,y1)和(x2,y2)之间的距离可以用数值|x1-x2|+|y1-y2|度量。
居民们希望在城市中选择建立邮局的最佳位置,使n个居民点到邮局的距离总和最小。
« 编程任务:
给定n 个居民点的位置,编程计算n 个居民点到邮局的距离总和的最小值。
« 数据输入:
由文件input.txt 提供输入数据。文件的第1 行是居民点数n,1£ n£ 10000。接下来n 行
是居民点的位置,每行2 个整数x 和y,-10000£ x,y£ 10000。
« 结果输出:
程序运行结束时,将计算结果输出到文件output.txt 中。文件的第1 行中的数是n 个居
民点到邮局的距离总和的最小值。
输入文件示例 输出文件示例
input.txt output.txt
5
1 2
2 2
1 3
3 -2
3 3
10
- 2022-08-26 13:24:17下载
- 积分:1
-
本程序是基于vc开发的一个独立与任何编程开发平台的游戏程序....
本程序是基于vc开发的一个独立与任何编程开发平台的游戏程序.-this program is based on one developed by vc independent of any programming platform game.
- 2023-08-17 18:30:04下载
- 积分:1