-
程序存储问题:设有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
-
hough 变换算法
这是一个关于 Hough 变换的文件。它是非常有趣的人,开始为图像处理批准。感谢你很 much.ok。
- 2022-05-26 12:58:20下载
- 积分:1
-
directly through ODBC read and write Excel document
直接通过ODBC读写Excel表格文件-directly through ODBC read and write Excel document
- 2022-06-17 16:00:27下载
- 积分:1
-
KRUSKAL Algorithm
KRUSKAL算法-KRUSKAL Algorithm
- 2022-03-17 03:50:03下载
- 积分:1
-
商品交易管理数据库
商品交易管理数据库-commodity transaction management database
- 2022-07-02 20:44:28下载
- 积分:1
-
一个对字串进行RAS方式加密的代码。 用于加密用户密码等敏感资料。 可以通过JSP页面进行调用...
一个对字串进行RAS方式加密的代码。 用于加密用户密码等敏感资料。 可以通过JSP页面进行调用-one pair of strings way for RAS encryption code. To encrypt user passwords and other sensitive information. JSP pages can be called for
- 2022-02-04 01:18:34下载
- 积分:1
-
zoj 400道ACM 源码,是在ZOJ混的ACMer必备。希望对大家有点帮助。...
zoj 400道ACM 源码,是在ZOJ混的ACMer必备。希望对大家有点帮助。-zoj 400 Dao ACM source code, is essential in the ZOJ mixing ACMer. Hope to everyone to some extent.
- 2022-04-18 01:25:21下载
- 积分:1
-
这是我老师做给我们Asp.net数据库的连接里面有有网站的稍微的 设计的感觉挺吧错的,希望你们能满意...
这是我老师做给我们Asp.net数据库的连接里面有有网站的稍微的 设计的感觉挺吧错的,希望你们能满意-This is my teacher to do to us Asp.net database connections there are web site design a little sense of it quite wrong, I hope that you will be satisfied
- 2022-06-01 20:05:52下载
- 积分:1
-
迷宫程序,C++实现 一个用VC写的关于迷宫的程序
迷宫程序,C++实现 一个用VC写的关于迷宫的程序-maze procedure, C to achieve a VC was on the maze procedure
- 2022-02-20 11:37:30下载
- 积分:1
-
Air booking system c++ source code. The structure of air passenger data source b...
航空订票系统的c++源码。是数据结构航空客运订票系统的源码,个人制造-Air booking system c++ source code. The structure of air passenger data source booking systems, personal manufacturing
- 2023-01-02 12:45:04下载
- 积分:1