Skip to content

day09 程序存储问题 | HBUACM #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
HANXU2018 opened this issue Jun 18, 2022 · 0 comments
Open

day09 程序存储问题 | HBUACM #29

HANXU2018 opened this issue Jun 18, 2022 · 0 comments

Comments

@HANXU2018
Copy link
Member

https://hbuacm.github.io/2020/07/24/day09/

河北大学程序设计训练营 day09 程序存储问题题目描述:设有n个程序{1,2,…,n}要存放在长度为L的磁带上。程序i存放在磁带上的长度是li,1≤i≤n。 程序存储问题要求确定这n个程序在磁带上的一个存储方案, 使得能够在磁带上存储尽可能多的程序。 对于给定的n个程序存放在磁带上的长度,计算磁带上最多可以存储的程序数。 输入格式:第一行是2个正整数,分别表示文件个数n和磁带的长度L。接下来的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant