-
20多个常用代码
20多个常用代码-more than 20 commonly used code
- 2022-03-05 10:03:18下载
- 积分:1
-
获取密码文本密码输入框中的密码,比较实用的功能
获取密码文本密码输入框中的密码,比较实用的功能-Get the Password text box, enter the password for your password, more practical functions of
- 2022-01-24 15:26:02下载
- 积分:1
-
ereader for evc4.0 project. source code to view .txt .doc files.
电子书阅读器,EVC4.0环境下的工程(包含所有源码),实现文本等文件的浏览。-ereader for evc4.0 project. source code to view .txt .doc files.
- 2022-08-04 07:24:41下载
- 积分:1
-
simulating small dog eating beans
模拟小狗吃豆的小程序-simulating small dog eating beans
- 2022-07-18 10:02:09下载
- 积分:1
-
安特·奥尔戈里特在障碍和复杂情况下的搜索路径
这个程序使用蚂蚁算法在野外寻找路线,有能力绕过一些障碍物并通过(如果你需要的话)更困难的地形。通道的复杂程度从1(最难通过)到5(比开阔场地稍难)。另外,通道可能穿过相邻的格角,在墙体施工时应注意。
- 2022-03-05 18:46:35下载
- 积分:1
-
RTF
The RTF-control is a very useful beast, but it takes a nerve-grating amount of code to accomplish even the most basic formatting tasks. Adding the capabilities to easily edit formatted text is often a boon to an application, but taking this amount of work? Why not some commands to get and set the RTF directly? Save and load to a file? Built-in editing buttons?
- 2022-05-10 22:03:52下载
- 积分:1
-
介绍打开位图的方法及位图的一些相关操作。
介绍打开位图的方法及位图的一些相关操作。-this is a very important homework which can make you know the way to open the picture with VC
- 2022-01-26 02:14:07下载
- 积分:1
-
统计每行的英文字母的个数
统计每行的英文字母的个数-statistics on each side of the alphabetic Number
- 2022-02-05 05:59:04下载
- 积分: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
-
CCeButtonST Development
CCeButtonST 开发-CCeButtonST Development
- 2022-04-23 15:05:20下载
- 积分:1