-
Control area network implemented without while loop
Control area network implemented without while loop
- 2022-04-20 23:14:36下载
- 积分:1
-
裁剪车间管理
裁缝车间管理是C#.NET开发的项目源代码。裁缝店铺管理开发C#.NET编程语言使用MS Access数据库。这是为学生容易可用的项目
- 2022-05-28 03:09:37下载
- 积分:1
-
it a source code of lenmessenger.
it a source code of lenmessenger.
- 2022-01-26 06:58:42下载
- 积分:1
-
算法实现题2
算法实现题2-1 输油管道问题
« 问题描述:
某石油公司计划建造一条由东向西的主输油管道。该管道要穿过一个有n 口油井的油
田。从每口油井都要有一条输油管道沿最短路经(或南或北)与主管道相连。如果给定n口油
井的位置,即它们的x 坐标(东西向)和y 坐标(南北向),应如何确定主管道的最优位置,
即使各油井到主管道之间的输油管道长度总和最小的位置?证明可在线性时间内确定主管道
的最优位置。
« 编程任务:
给定n 口油井的位置,编程计算各油井到主管道之间的输油管道最小长度总和。
« 数据输入:
由文件input.txt 提供输入数据。文件的第1 行是油井数n,1£ n£ 10000。接下来n 行是
油井的位置,每行2个整数x和y,-10000£ x,y£ 10000。
« 结果输出:
程序运行结束时,将计算结果输出到文件output.txt 中。文件的第1 行中的数是油井到
主管道之间的输油管道最小长度总和。
输入文件示例 输出文件示例
input.txt output.txt
5
1 2
2 2
1 3
3 -2
3 3
6
- 2022-11-12 20:40:04下载
- 积分:1
-
on mouse called C code
关于C下调用鼠标的代码-on mouse called C code
- 2022-07-25 05:14:36下载
- 积分:1
-
是一个培训管理系统
是一个培训管理系统-is a training management system
- 2022-02-10 13:02:42下载
- 积分:1
-
用VB实现一些特殊的文字效果,使VB效果好极了
用VB实现一些特殊的文字效果,使VB效果好极了-Use VB language to achieve some special effects, so that the effect of good VB
- 2022-06-29 05:02:29下载
- 积分:1
-
Telecom wireless optimization study materials well in practice over there that i...
学习电信无线优化的好材料,在里面实习过,觉得很有用就发上来 分享下-Telecom wireless optimization study materials well in practice over there that is useful to share on the hair under the table
- 2023-07-05 02:35:04下载
- 积分:1
-
小图象在大图象上来回的移动,可以选择不同的方式来看效果
小图象在大图象上来回的移动,可以选择不同的方式来看效果
-Small image in the image on the back and forth movement, you can choose to look at the effect of different ways
- 2022-03-25 03:16:16下载
- 积分:1
-
简单soket c/s通讯示例 采用VC语言,也通过运行,有算法简介。...
简单soket c/s通讯示例 采用VC语言,也通过运行,有算法简介。-Simple routine of socket c/s communication based on VC, which pass debug and can run with arithmetic description.
- 2022-08-25 10:00:27下载
- 积分:1