描述
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.
翻译:
一个香蕉蛋糕需要250克面粉,2个香蕉,75克糖和100克黄油。一个巧克力蛋糕需要200克面粉,75克可可,150克糖和150克黄油。一个巧克力蛋糕的利润是45元,香蕉蛋糕的利润是40元。我们有4000克面粉,6个香蕉,2000克糖,500克黄油和500克可可。问题是做多少香蕉蛋糕和巧克力蛋糕会是利润最大。
输入
N/A
输出
第一行:巧克力蛋糕的数量
第二行:香蕉蛋糕的数量