There are n students going to travel. And hotel has two types room:double room and triple room. The price of a double room is p2 and the price of a triple room is p3.Now you need to calulate the minimum total cost of these students.
The first line has three integers n, p2, p3
Output the minimum total cost.
4 2 3
4
5 1 3
3
1<=n<=10^9
1<=p2,p3<=10^9
解题思路:
AC代码:
原文:https://www.cnblogs.com/acgoto/p/9502598.html