排序+01背包

LYD参与了一场俄罗斯竞赛,比赛中有n道题目,每道题目的分数会随时间以di的速度递减。他需要在T分钟内解决题目以获取最高分数。题目解决需要ci分钟。问题转化为如何按单位时间分数减少最快排序题目,以实现最大得分。输入包括题目数量、比赛时间、初始分数、分数减少率和解题时间。输出为LYD能获得的最大分数。
摘要由CSDN通过智能技术生成


Problem Description

LYD loves codeforces since there are many Russian contests. In an contest lasting for T minutes there are n problems, and for the ith problem you can get aiditi points, where ai indicates the initial points, di indicates the points decreased per minute (count from the beginning of the contest), and tistands for the passed minutes when you solved the problem (count from the begining of the contest).
Now you kno

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值