1.19(Cake Baking)

https://acs.jxnu.edu.cn/problem/NOIOPJENGLISH02

描述:

A banana cake takes 250 flour, 2 bananas, 75 sugar and 100 butter, and a chocolate cake takes 200 flour, 75 cocoa, 150 sugar and 150 butter. The profit of a chocolate cake is 45 and the profit of a banana cake is 40. And we have 4000 flour, 6 bananas, 2000 sugar, 500 butter and 500 cocoa. The question is how many of chocolate cakes and banana cakes should we bake for the fete to maximize the total profit.

输入:

N/A

输出:

First line: one integer indicating the number of chocolate cakes.
Second line: one integer indicating the number of banana cakes.

样例输入:

N/A

样例输出:

not provided

翻译:

描述:

140/5000 
一个香蕉蛋糕需要250个面粉,2个香蕉,75个糖和100个黄油,一个巧克力蛋糕需要200个面粉,75个可可,150个糖和150个黄油。巧克力蛋糕的利润是45,香蕉蛋糕的利润是40。我们拥有4000个面粉,6个香蕉,2000个糖,500个黄油和500个可可。问题是我们应该为宴会烘烤多少巧克力蛋糕和香蕉蛋糕才能使总利润最大化。

输入:

N/A:

输出:

第一行:一个整数表示多少个巧克力蛋糕

第二行:一个整数表示多少个香蕉蛋糕

样例输入:

N/A

样例输出:

not provided
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值