Redian新闻
>
改换版表成熊了吧。。
avatar
改换版表成熊了吧。。# Stock
S*t
1
online submission 最后一道了 有点像knapsack problem
Minimize Cost of Fruits
There are three types of fruits providing energy 2, 3, 5 respectively, with
amounts given by cnt1, cnt2, cnt3, and the cost of fruits given by cost1,
cost2, and cost3 respectively. Given an energy level S, return the minimum
cost of the fruits that
will give energy S or greater. If no such combination is possible, return -1
def minCost(S, cnt1, cnt2, cnt3, cost1, cost2, cost3):
pass
avatar
d*0
2
波浪式前进。。
avatar
d*n
3
既然没有重量限制 第一反应就是性价比 直接贪心?
avatar
k*n
4
不能改!
版标繁繁殖。。。

【在 d******0 的大作中提到】
: 波浪式前进。。
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。