本文主要是介绍1.24翻译,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
OpenJudge - 02:Cake Baking
http://noi.openjudge.cn/english/02/
02:Cake Baking
总时间限制:
1000ms
内存限制:
65536kB
描述
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.
做一个香蕉蛋糕要用250克面粉,2根香蕉,75克糖和100克黄油,做一个巧克力蛋糕要用200克面粉,75克可可粉,150克糖和150克黄油。巧克力蛋糕的收益是45,香蕉蛋糕的收益是40.并且我们有4000克面粉,6根香蕉,2000克糖,500克黄油和500克可可粉。我们应该为宴会烘焙多少个巧克力蛋糕,多少个香蕉蛋糕才能使总收益最大化。
输入
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
没有提供。
这篇关于1.24翻译的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!