-
程序存储问题:设有n 个程序{1,2,…, n }要存放在长度为L的磁带上。程序i存放在磁带上的长度是Li ,1≤i≤n 程序存储问题要求确定这n 个程序在磁带...
程序存储问题:设有n 个程序{1,2,…, n }要存放在长度为L的磁带上。程序i存放在磁带上的长度是Li ,1≤i≤n 程序存储问题要求确定这n 个程序在磁带上的一个存储方案,使得能够在磁带上存储尽可能多的程序。 编程任务: 对于给定的n个程序存放在磁带上的长度,编程计算磁带上最多可以存储的程序数。 数据输入:由文件input.txt给出输入数据。第一行是正整数n,表示文件个数。接下来的1 行中,有n 个正整数,表示程序存放在磁带上的长度。 结果输出: input.txt output.txt 6 50 5 2 3 13 8 80 20 -program storage problem : There n procedures (1,2, ..., n) to be stored in the length of the L tape. I kept in the proceedings on the tape length is Li, 1 i n storage procedures to seek to establish that n procedures on tape storage of a program that allows the tape to store as much as possible the procedure. Programming tasks : to the n procedures stored in the tape length, calculated programming on tape can store up to the number of procedures. Data input : from the document input.txt given input data. The first line is a positive integer n, said the document number. Following a visit, n is an integer, said procedures stored on tape length. Results output : input.txt output.txt 6 50 5 2 3 13 8 80 20
- 2023-01-10 04:30:04下载
- 积分:1
-
本人的ssd7的练习3的答案, 供大家参考, 希望大家喜欢
本人的ssd7的练习3的答案, 供大家参考, 希望大家喜欢-ssd7 exercise3
- 2022-06-26 11:13:06下载
- 积分:1
-
用C语言编写。数据结构,任意输入数值的折半查找。
用C语言编写。数据结构,任意输入数值的折半查找。-Using C language. Data structures, arbitrary input values to find the half.
- 2023-05-20 09:25:04下载
- 积分:1
-
四则运算实现,这个算法是用C语言实现的,算法程序代码明确易懂。...
四则运算实现,这个算法是用C语言实现的,算法程序代码明确易懂。-four Operators realize that this algorithm is used to achieve the C language, the algorithm code clear and understandable.
- 2022-06-15 16:25:28下载
- 积分:1
-
数据结构二叉树的实现
数据结构二叉树的实现-binary tree data structure to achieve
- 2023-03-28 08:35:04下载
- 积分:1
-
通过此软件可方便的对interbase数据库进行合并,分割,筛选,迁移等操作。...
通过此软件可方便的对interbase数据库进行合并,分割,筛选,迁移等操作。-through this software can be a convenient database on the interbase merger, the division, screening, relocation operation.
- 2022-05-19 07:18:27下载
- 积分:1
-
这是字符串匹配算法中很著名的KMP算法,此文件仅供大家参考,具体是否能调通,本人还没有试过...
这是字符串匹配算法中很著名的KMP算法,此文件仅供大家参考,具体是否能调通,本人还没有试过-This is a string matching algorithm is famous KMP algorithm, this document is your reference, specifically whether Qualcomm will emphasize, I have not tried
- 2022-03-30 22:24:58下载
- 积分:1
-
我上课用的计算机算法设计与分析的电子教案,内容包括了最基本的分治法,贪心法,动态规划法,...
我上课用的计算机算法设计与分析的电子教案,内容包括了最基本的分治法,贪心法,动态规划法,-I class computer algorithms used in design and analysis of electronic lesson plans, including the most basic sub-rule law, greedy method, dynamic programming method,
- 2022-06-12 19:43:12下载
- 积分:1
-
PHP 连接
Java 检测 distruibuidos 数据库, PHP 执行情况
- 2022-10-26 16:25:03下载
- 积分:1
-
数据结构的C++PDF文档
数据结构的C++PDF文档-data structures of C PDF files
- 2022-07-10 23:31:55下载
- 积分:1