标签:香蕉 150 cakes Baking 单位 No.2 蛋糕 Cake banana
原题:
Cake Baking
1000ms 65536K
描述:
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
译文:
烤蛋糕
1000ms 65536K
描述:
制作一个香蕉蛋糕需要250单位的面粉,2单位的香蕉,75单位的糖和100单位的黄油;制作一个巧克力蛋糕需要200单位的面粉、75单位的可可、150单位的糖以及150单位的黄油;一个巧克力蛋糕的利润是45元,一个香蕉蛋糕的利润是40元。现在,我们有4000单位的面粉、6单位的香蕉、2000单位的糖、500单位的黄油以及500单位的可可,你需要解决的问题是我们分别烤多少个巧克力蛋糕和香蕉蛋糕可以使利润达到最大。
输入:
无
输出:
第一行输出一个整数,表示巧克力蛋糕的数量。
第二行输出一个整数,表示香蕉蛋糕的数量。
样例输入:
无
样例输出:
不提供
标签:香蕉,150,cakes,Baking,单位,No.2,蛋糕,Cake,banana 来源: https://blog.csdn.net/Chen_q_/article/details/122553839
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。