-
The windows of chat room
聊天室窗口 聊天室窗口-The windows of chat room
- 2022-02-24 19:49:55下载
- 积分:1
-
Cells in accordance with the rules of the game of life, using computer games to...
根据生命细胞游戏的规则,用计算机对生命游戏进行简单的模拟,在c++控制台环境下完成-Cells in accordance with the rules of the game of life, using computer games to life a simple simulation, in c++ Console environment to complete
- 2022-03-04 20:30:39下载
- 积分:1
-
swfupload大文件上传
swfupload大文件上传,有进度条,在ie6/7/8下正常运行,vs2010下调试正常。基于swfupload2.2进行。swfupload,swfupload,swfupload,swfupload,swfupload
- 2022-01-26 17:31:34下载
- 积分:1
-
用 VB 做的 GPS 通讯程序,显示当前时钟。
用 VB 做的 GPS 通讯程序,显示当前时钟。-do with VB GPS communication process, showing current clock.
- 2022-06-02 22:36:42下载
- 积分:1
-
这是一个用JAVA的源程序。
这是一个用JAVA的源程序。-This is a source of using JAVA.
- 2022-10-07 21:15:03下载
- 积分:1
-
DrawPanel
实现类似于Windows附件中的画图程序-DrawPanel
- 2022-11-27 20:50:04下载
- 积分:1
-
VB编写的电子地图,可以实现基本的功能,如缩放…
VB编写的电子地图,可实现放大缩小查找等基本功能-VB prepared the electronic maps, can realize the basic functions such as zoom to find
- 2022-02-12 01:10:45下载
- 积分:1
-
简易计算器,可以连续输入计算式,然后输出结果。先把中缀式转换成后缀式然后计算。...
简易计算器,可以连续输入计算式,然后输出结果。先把中缀式转换成后缀式然后计算。
- 2022-02-14 07:47:18下载
- 积分: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
-
包括典型的生成字典序排列和快速排序料到典型的源代码
包括典型的生成字典序排列和快速排序料到典型的源代码-Including the generation of typical lexicographic order and quick to sort thought the source code of a typical
- 2023-05-12 10:25:04下载
- 积分:1