-
程序存储问题:设有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
-
磁盘文件最优存储问题,设磁盘上有n 个文件f1, f1,fn,每个文件占磁盘上1 个磁道。这n 个文件的检索概率分别是p1, p2, , pn...
磁盘文件最优存储问题,设磁盘上有n 个文件f1, f1,fn,每个文件占磁盘上1 个磁道。这n 个文件的检索概率分别是p1, p2, , pn-document optimal disk storage, disk based on documents n f1, f1, fn. each file on disk for a cylinder. N This document retrieval probability were p1, p2, and pn
- 2022-07-17 15:47:34下载
- 积分:1
-
Memory Decoder
Memory Decoder
- 2022-03-25 05:30:59下载
- 积分:1
-
非常完美地二叉搜索树模板~~~~ 希望大家能够喜欢,并且提出宝贵意见和建议...
非常完美地二叉搜索树模板~~~~ 希望大家能够喜欢,并且提出宝贵意见和建议-perfectly Binary Search Tree template ~ ~ ~ ~ hope that we can love and made valuable suggestions and recommendations
- 2023-06-02 12:30:04下载
- 积分:1
-
线性表常用算法集合,含所有线性表基本的算法,与吴伟民编的数据结构书完全配套,用TC实现,经过运行。...
线性表常用算法集合,含所有线性表基本的算法,与吴伟民编的数据结构书完全配套,用TC实现,经过运行。-linear algorithm commonly used pool table, table containing all the basic linear algorithms, and Xiulan WU Weimin series of the data structure was fully complementary with TC realization, after running.
- 2022-01-20 22:51:35下载
- 积分:1
-
图论中二分图匹配求最佳匹配的KM算法,用c实现,简单易懂
图论中二分图匹配求最佳匹配的KM算法,用c实现,简单易懂-Graph Theory in the bipartite graph matching the best match for KM algorithm, with c realize, easy-to-read
- 2022-09-24 04:50:02下载
- 积分:1
-
循环队列的实现
实现循环扩容队列
- 2022-03-03 18:28:19下载
- 积分:1
-
用vfp实现的工资管理系统源码,可实现中小企业员工工资自动化管理。...
用vfp实现的工资管理系统源码,可实现中小企业员工工资自动化管理。-Implemented using vfp salary management system source code, can realize automatic management of small and medium enterprises, wages and salaries.
- 2022-06-21 15:22:00下载
- 积分:1
-
This is a linked list with the simple realization of student management procedur...
这是一个用链表实现的简单的学生管理程序,有链表的插入删除等各种操作-This is a linked list with the simple realization of student management procedures, delete, insert Chain various operations
- 2022-05-28 22:47:17下载
- 积分:1
-
图书馆管理软件
图书馆管理软件 -library management software library management software
- 2022-09-30 14:50:03下载
- 积分:1