Chef has invented
-minute Instant Noodles. As the name suggests, each packet takes exactly minute to cook.
Chef's restaurant has stoves and only packet can be cooked in a single pan.
How many customers can Chef serve in minutes if each customer orders exactly packet of noodles?
Input Format
- The first and only line of input contains two space-separated integers and — the number of stoves and the number of minutes, respectively.
Output Format
- Print a single integer, the maximum number of customers Chef can serve in minutes
Constraints
Sample Input 1
3 7
Sample Output 1
21
Explanation
Chef cooks for minutes and can cook packets per minute, one on each stove.
So, the total number of packets that can be cooked is .
Each person orders one packet, so the maximum number of customers that can be served is .
Sample Input 2
7 8
Sample Output 2
56
Explanation
Chef cooks for minutes and can cook packets per minute, one on each stove.
So, the total number of packets that can be cooked is .
Each person orders one packet, so the maximum number of customers that can be served is .
No comments:
Post a Comment