-
程序存储问题:设有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
-
这是数据结构的哈夫曼的实验报告
这是数据结构的哈夫曼的实验报告-This is the data structure of the experimental report Huffman
- 2022-05-31 06:25:03下载
- 积分:1
-
是数据结构书上的算法,都是比较经典的实现。
是数据结构书上的算法,都是比较经典的实现。-data structure is the book algorithm, which is a more classic realized.
- 2022-12-05 09:50:03下载
- 积分:1
-
一个关于数据结构哈夫曼编/译码的程序
一个关于数据结构哈夫曼编/译码的程序-Another Huffman tree coding Algorithm for Data Structure.
- 2023-01-09 13:00:04下载
- 积分:1
-
minilist类的实现。数据结构的作业之一,用c++实现minilist类,已经通过测试。...
minilist类的实现。数据结构的作业之一,用c++实现minilist类,已经通过测试。-minilist class implementation. One of the data structures, using c++ implementation minilist classes have been tested.
- 2022-04-22 16:56:44下载
- 积分:1
-
嵌入式轻量数据库
the embedded light weight database with source
- 2022-01-30 21:01:19下载
- 积分:1
-
数据结构代码,很好的资料
数据结构代码,挺好的资料,共享下,这个网站变态-Data structure code, very good information-sharing, this site metamorphosis
- 2023-06-24 19:25:02下载
- 积分:1
-
数据结构上机实验内容 索引顺序表的查找源程序代码
数据结构上机实验内容 索引顺序表的查找源程序代码-data structure on the plane experiment content indexing table lookup sequence source code
- 2022-12-07 23:30:03下载
- 积分:1
-
均匀分布和高斯分布的C代码
均匀分布和高斯分布的C代码-uniform and Gaussian distribution of C code
- 2022-04-25 09:17:28下载
- 积分:1
-
用Delphi写的备份sqlserver数据库的小工具
用Delphi写的备份sqlserver数据库的小工具-write with Delphi SQLServer database backup small tools
- 2022-05-29 15:01:06下载
- 积分:1