【NWERC2015】【BZOJ4426】BetterProductivity最大生产率

Description

ACME Inc. is reorganizing their factory, in order to maximize their productivity of useless trinkets. The new factory design consists of p independent and identical production lines. Each production line can be assigned some number of workers.
The actual work is of course all done by machines, so the production rate of a production line is independent of the actual number of workers assigned to it. However, the workers work in shifts, and due to local safety regulations, a production line can only be active while all of its workers are present (any worker who arrives before the last person to arrive, or leaves after the first person leaves, will be spending the inactive time having a coffee break). In other words, the productivity of a production line equals the length of the timespan during which all of the workers assigned to this production line are present. Crucially, the productivity of each line must be positive (i.e., the last worker to arrive for a line must arrive strictly before the first worker for that line leaves), since otherwise the workers feel that their jobs are meaningless.
Unfortunately, due to some pesky labor laws, ACME are not allowed to fire any of their workers, which means that each of their n workers must be assigned to some production line, even though this may actually decrease the overall productivity of the factory.
All these rules and regulations are making a headache for ACME management. Can you help them figure out the maximum possible total productivity (sum of productivities of the p production lines) of their new factory?
ACME公司正在重组他们的工厂,以最大化他们生产无用的小饰品的效率。新工厂由相同的p个独立生产线组成。每一条生产线都可以被分配一些员工。
实际的工作都是由机器完成,所以一条生产线的效率是由分配给它的员工数量决定的。但是,员工们轮班工作,而且由于当地安全法规定,一条生产线只有在被分配给它的员工都正在工作岗位上时,才能开启(任何比最后到的员工先到或比最先离开的员工后离开的员工,会用时间来喝咖啡休息)。换句话说,生产线的生产效率等于它的所有员工都在岗位上的时间长度。最重要的是,生产线的生产效率必须为正数

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值