-
程序存储问题:设有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
-
Ma checkerboard recursive algorithm (TC achieved, and to provide diagram), and c...
马跳棋盘递归算法(TC实现,并提供示意图),可移植到任何C编译器-Ma checkerboard recursive algorithm (TC achieved, and to provide diagram), and can be transplanted to any C compiler
- 2022-03-01 23:42:47下载
- 积分:1
-
C#实现xml读取和写入
资源描述C#实现xml文件读取和写入。自己项目里面的一个功能,本地数据缓存时使用。编码清晰,一看就懂的哈。
- 2022-08-07 15:13:44下载
- 积分:1
-
MySQL中文手册
Mysql的中文手册-Mysql Chinese Manual
- 2022-03-14 14:19:44下载
- 积分:1
-
postgresql7.4.6 Linux
PostgreSQL7.4.6 for Linux
- 2022-08-26 10:38:16下载
- 积分:1
-
是一种数据结构的算法,实现一种简单的数据计算功能
是一种数据结构的算法,实现一种简单的数据计算功能-is a data structure of the algorithm to achieve a simple function data
- 2022-08-11 06:34:11下载
- 积分:1
-
该程序用于计算二项式系数,它采用动态规划的方法,其效率远远高于递归的方法,而且空间效率也很高。...
该程序用于计算二项式系数,它采用动态规划的方法,其效率远远高于递归的方法,而且空间效率也很高。-the procedures used to calculate the binomial coefficients, which uses dynamic programming methods, the efficiency is far higher than the recursive method and space efficiency is also high.
- 2022-03-19 06:00:22下载
- 积分:1
-
用vb6.0实现GIS的重要算法TIN的生长算法。
用vb6.0实现GIS的重要算法TIN的生长算法。-GIS using vb6.0 an important method to achieve the growth of TIN algorithms.
- 2022-12-21 20:10:03下载
- 积分:1
-
运用apache的poi读取excel表格内容,将读取出来的数据插入db2数据库。...
运用apache的poi读取excel表格内容,将读取出来的数据插入db2数据库。-The poi using apache to read the contents of excel table, will read out the data into db2 database.
- 2022-02-27 05:09:11下载
- 积分:1
-
数据库课程设计,设计一个订户订阅报刊的应用系统
数据库课程设计,设计一个订户订阅报刊的应用系统-Database of curriculum design, the design of a subscriber subscriptions to newspapers and magazines of the application system
- 2022-01-21 05:03:03下载
- 积分:1