← 返回 capitalone 的题目列表Break-even pricing during peak hours
类型:online_judge
capitalone
Assume the day is split into surge and non-surge demand hours. Non-peak demand lasts for 4 hours and has 800 rides. Peak demand lasts another 4 hours and has 1,600 rides. Assume you can only hire drivers for the full day. How much would you need to charge during peak hours to break even on your profit from the first question?
Example
Input
800 1600 30