描述
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
翻译:
描述
一个香蕉蛋糕需要 250 面粉、2 根香蕉、75 糖和 100 黄油,一个巧克力蛋糕需要 200 面粉、75 可可粉、150 糖和 150 黄油。一个巧克力蛋糕的利润是 45,一个香蕉蛋糕的利润是 40。我们有 4000 面粉、6 根香蕉、2000 糖、500 黄油和 500 可可粉。问题是我们应该为宴会烤多少巧克力蛋糕和香蕉蛋糕才能最大化总利润。
输入
N/A
输出
第一行:一个整数,表示巧克力蛋糕的数量。