-
程序存储问题:设有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
-
该程序实现了用文件记录变长字节流,可用以存储各种类型的文件,如多媒体数据,声音、图形、图像等。每项记录由记录号和标志符标记。记录的记录号和标识均可用作对记录的定...
该程序实现了用文件记录变长字节流,可用以存储各种类型的文件,如多媒体数据,声音、图形、图像等。每项记录由记录号和标志符标记。记录的记录号和标识均可用作对记录的定位和引用,记录号可以由操作者输入,也可以自动生成,标志符一定要由操作者输入。
- 2022-10-11 12:20:02下载
- 积分:1
-
八皇后问题,回溯算法的经典例子,此程序可以扩展至n皇后问题。...
八皇后问题,回溯算法的经典例子,此程序可以扩展至n皇后问题。-eight Queen"s problems, backtracking algorithms classic example of this procedure can be extended to n Queen"s problem.
- 2022-11-28 00:55:03下载
- 积分:1
-
动态加载odbc数据源及其内部表单的小程序
动态加载odbc数据源及其内部表单的小程序-Dynamic loading odbc data source and its internal form of small programs
- 2022-09-04 08:50:02下载
- 积分:1
-
这是我上学期的课程操作系统的设计和一个多
这是我上个学期操作系统的课程设计,做了一个多级文件系统,用文件模拟磁盘,基于i节点结构,功能超强,希望对大家有用。-This is my last semester of courses operating system design and a multi-level file system, disk using simulated document, based on i node structure, function superpower, we hope that the right useful.
- 2022-02-13 06:28:16下载
- 积分:1
-
车厢重排,一个c++数据结构习题
车厢重排,一个c++数据结构习题-compartments rearrangement, a data structure c Exercises
- 2022-05-22 11:57:54下载
- 积分:1
-
处理机调度的算法,操作系统的课程设计,主要是应用轮转法进行进程的调度...
处理机调度的算法,操作系统的课程设计,主要是应用轮转法进行进程的调度-processor scheduling algorithms, operating system design of Web applications is the main method of the scheduling process
- 2022-04-11 07:58:19下载
- 积分:1
-
A small database system, the specific contents of address book for the class to...
一个小数据库系统,具体内容为班级通讯录,比较全-A small database system, the specific contents of address book for the class to compare the whole
- 2023-09-08 19:00:04下载
- 积分:1
-
数据结构和算法,C++描述,数据结构习题,数据结构答案
数据结构和算法,C++描述,数据结构习题,数据结构答案-datastruct
- 2022-03-06 05:33:15下载
- 积分:1
-
出入口控制管理程序
出入口控制管理程序实现对各种人员通道,车辆通道出入的记录、抓拍控制等应用管理
- 2022-03-28 21:36:58下载
- 积分:1