当前位置: 代码迷 >> 综合 >> Cake Baking(翻译)
  详细解决方案

Cake Baking(翻译)

热度:98   发布时间:2023-12-04 22:55:21.0

原链接:OpenJudge - 02:Cake Baking

描述

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面粉,两根香蕉,75糖,和100黄油,一个巧克力蛋糕需要200面粉,75可可,和150黄油。一份巧克力蛋糕的利润是45而一份香蕉蛋糕的利润是40。现在我们有4000面粉,六根香蕉,2000糖,500糖和黄油。现在的问题是我们要为节日烘培多少巧克力蛋糕和香蕉蛋糕来使得总利润尽可能最大化。

输入:

   N/A

输出:

第一行:一个整数表示巧克力蛋糕的数量。

第二行;一个整数表设计香蕉蛋糕的数量。