-
程序存储问题:设有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
-
一个简单适用的产品订购系统,适合初学者使用
一个简单适用的产品订购系统,适合初学者使用-A simple application of the product ordering system, suitable for beginners to use
- 2022-08-17 23:03:04下载
- 积分:1
-
有漂亮的用户界面,用链表实现多项式的各种运算,推荐刚学数据结构链表的人下载....
有漂亮的用户界面,用链表实现多项式的各种运算,推荐刚学数据结构链表的人下载.-a beautiful user interface, List polynomial used in a variety of computing, has recommended data structure Chain downloading from the Internet.
- 2023-05-25 21:25:03下载
- 积分:1
-
栈(stack)是程序设计过程中经常遇到朝气一种数据结构形式,它对于数据的存放和操作有下面这样的特点: 1) 它只有一个对数据进行存入和取出的端口; 2) 后进...
栈(stack)是程序设计过程中经常遇到朝气一种数据结构形式,它对于数据的存放和操作有下面这样的特点: 1) 它只有一个对数据进行存入和取出的端口; 2) 后进者先出,即最后被存入的数据将首先被取出。其形式很象一种存储硬币的小容器,每次只可以从顶端压入一个硬币,而取出也只可以从顶端进行,即后进先出。 这样的数据存储和管理形式在一些程序设计中很有用。例如,编译系统中(这是一类比较复杂的程序),对于函数调用的处理、对于表达式计算的处理,都利用了栈这样的数据结构。- The stack (stack) is in the programming process frequently
meets the vitality one kind of construction of data form under, it has
such characteristic regarding data depositing and the operation: 1) it
only has a logarithm according to the port which carries on stores and
takes out; 2) less advanced first leaves, namely finally the data
which will store first is taken out. Its form looks like one kind of
memory coin very much the small container, each time only may press in
a coin from the peak, but takes out also only may carry on from the
peak, namely less advanced first leaves. Such data storage and the
management form are very useful in some programmings. For example, in
the compiling system (this is a kind of quite complex procedure),
transfe
- 2023-08-22 21:50:04下载
- 积分:1
-
数据结构中实现图的关键路径的算法,是在TC中运行的。
数据结构中实现图的关键路径的算法,是在TC中运行的。-data structure to achieve the critical path map algorithm is run in the TC.
- 2022-02-22 08:58:49下载
- 积分:1
-
数据结构:表达式计算
c语言用堆栈实现表达式计算,数据结构练习题。
- 2022-02-15 15:07:56下载
- 积分:1
-
数据结构CAI系统
数据结构CAI系统-用C语言开发的教学辅助系统。-data structure CAI system-C language teaching aids development of the system.
- 2022-01-21 02:29:46下载
- 积分:1
-
程序 请认真书写上传资料的详细功能、包含内容说明
程序 请认真书写上传资料的详细功能、包含内容说明-c
- 2023-02-21 07:40:03下载
- 积分:1
-
data structure to achieve the java
数据结构的java实现-data structure to achieve the java
- 2022-01-25 23:42:55下载
- 积分:1
-
primary structure of the data entry ranking eight small procedures, interested t...
初级入门数据结构的排序等8个小程序,有兴趣的看看哈!我的作业,呵呵!-primary structure of the data entry ranking eight small procedures, interested to see Ha! I work, Ha ha!
- 2022-11-03 07:55:03下载
- 积分:1