-
程序存储问题:设有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
-
Joseph A solution, the main use of the array to resolve the symbol C++ Source co...
约瑟夫问题的一个解法,主要利用数组来解决,代码为C++源代码。-Joseph A solution, the main use of the array to resolve the symbol C++ Source code.
- 2022-06-21 12:17:25下载
- 积分:1
-
excel仪表盘,很强大的仪表盘功能,做得很漂亮
excel仪表盘,很强大的仪表盘功能,做得很漂亮-excel
- 2022-09-30 22:15:03下载
- 积分:1
-
用c编写的数据内部排序方法,可在窗口中选择多种排序方法,如快排,冒泡,折半插入等,还可以选择排序数据的个数,初态,控制等....
用c编写的数据内部排序方法,可在窗口中选择多种排序方法,如快排,冒泡,折半插入等,还可以选择排序数据的个数,初态,控制等.-using data prepared by the internal order, the window can choose a variety of sequencing methods, such as fast Pai, bubbling half insert, can also choose the number of original data, the initial state, and control.
- 2022-03-14 13:48:46下载
- 积分:1
-
过JAVA编程产生一系列伪随机数,掌握平方取中法、乘同余法、混合同余法产生均匀随机数的方法。...
过JAVA编程产生一系列伪随机数,掌握平方取中法、乘同余法、混合同余法产生均匀随机数的方法。-off Java programming produce a series of pseudo-random numbers, master Mid-square method, I took with the law, mixed with the law I have Random Number method.
- 2023-05-31 04:50:02下载
- 积分:1
-
kulru void方法类maiun CX
最小生成树算法 克鲁斯法尔算法 球最佳路径-kulru method class maiun void cx
- 2022-07-25 13:37:56下载
- 积分:1
-
opencv存储数据结构
资源描述
介绍opencv特有的数据结构cvmat,对了解opencv的存储和读取数组和图片的格式有很大帮助
- 2022-07-24 21:06:18下载
- 积分:1
-
用四种方法实现对随机的10000个数的排序,并比较这四种方法性能的差异。...
用四种方法实现对随机的10000个数的排序,并比较这四种方法性能的差异。-Four methods used to achieve the number 10000 on the random sequencing and comparing the differences in the performance of four methods.
- 2022-03-26 15:33:52下载
- 积分:1
-
用c++写一个售货员问题。这是高级算法中除了红黑树中最难的一个了。是研究生课程中的的程序实现...
用c++写一个售货员问题。这是高级算法中除了红黑树中最难的一个了。是研究生课程中的的程序实现-used to write a salesman problem. This is in addition to the High algorithm RED-BLACK TREE which one of the most difficult. The postgraduate courses in the program
- 2023-01-31 20:35:04下载
- 积分:1
-
用VC编写的读取SQL数据库的小程序
用VC编写的读取SQL数据库的小程序-VC prepared by the reader SQL database small program
- 2023-04-17 17:05:03下载
- 积分:1