-
程序存储问题:设有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
-
C#与.net4.0数据库开发书源程序
C#与.net4.0数据库开发书源程序第一章
- 2022-08-24 01:37:22下载
- 积分:1
-
人力资源系统
应用背景人力资源管理系统,资源管理系统,资源管理系统,资源管理系统,资源管理系统,人力资源管理系统,资源管理系统,资源管理系统,资源管理系统,资源管理系统,人力资源管理系统,资源管理系统,资源管理系统,资源管理系统,资源管理系统,人力资源管理系统,资源管理系统,资源管理系统,资源管理系统资源管理系统,关键技术在线招聘系统PHP MySQL,PHP mysqlonline ;员工招聘体系与PHP mysqlonline员工招聘员工招聘体系mysqlonline系统PHP PHP mysqlonline员工招聘员工招聘体系mysqlonline系统PHP PHP mysqlonline员工招聘员工招聘体系mysqlonline系统PHP PHP mysqlv在线的员工招聘体系
- 2022-03-10 07:07:24下载
- 积分:1
-
with vb access with the development of a database of personnel management depart...
这是本人用vb配合access数据库开发的一个部门人事管理的一个小软件的源码。-with vb access with the development of a database of personnel management department of a small software source code.
- 2023-03-31 12:50:04下载
- 积分:1
-
基于C、c++排序大全
//希尔排序void ShellSort(int r[], int n){ int i; int d; int j; for (d=n/2; d>=1; d=d/2) //以增量为d进行直接插入排序 { for (i=d+1; i0 &am
- 2022-03-05 10:56:55下载
- 积分:1
-
data structure Shortest Path
数据结构最短路径-data structure Shortest Path
- 2023-07-23 13:55:02下载
- 积分:1
-
二叉树排序实现二叉树的前序、中序、后序排列,以菜单形式出现,代码简洁、易懂易用...
二叉树排序实现二叉树的前序、中序、后序排列,以菜单形式出现,代码简洁、易懂易用-Binary Tree Binary Tree Sort realize the first order, in sequence, after the sequence order to the menu form, the code is simple and easy to understand and use
- 2022-05-12 23:53:53下载
- 积分:1
-
用二分法解高阶方程的近似解。区间范围合计算精度可调,每一步的计算结果一列表的形式显示出来,一目了然...
用二分法解高阶方程的近似解。区间范围合计算精度可调,每一步的计算结果一列表的形式显示出来,一目了然-dichotomy solution with the higher-order equation approximate solution. The scope of a range accuracy adjustable every step of the calculation results in the form of a list show up clearly
- 2022-03-30 23:11:23下载
- 积分:1
-
noi2008解题报告.内含详尽解答.并且含有数据.
noi2008解题报告.内含详尽解答.并且含有数据.-noi2008 problem-solving report. contains a detailed answer. and contain data.
- 2022-06-13 20:47:06下载
- 积分:1
-
严蔚敏编写的《数据结构》第2章的答案,全部为源码
严蔚敏编写的《数据结构》第2章的答案,全部为源码-the answers of chapter two of a book called ‘Data Structures’ writen by Yan Wei Min
- 2022-11-03 03:35:03下载
- 积分:1