#K49812. Minimum Preparation Minutes for Taco Dishes
Minimum Preparation Minutes for Taco Dishes
Minimum Preparation Minutes for Taco Dishes
You are given three integers N, K, and M. Here, N represents the number of ingredient units that the chef can prepare per minute, K is the exact number of dishes to prepare, and M is the number of different ingredients required for each dish.
To prepare exactly K dishes, the chef must prepare a total of K × M ingredient units. Since the chef can prepare at most N units in one minute, the minimum number of minutes required is computed using the ceiling of the division:
\( \lceil \frac{K \times M}{N} \rceil \)
Your task is to compute and output this minimum number of minutes.
inputFormat
The input consists of a single line containing three space-separated integers: N, K, and M.
outputFormat
Print a single integer representing the minimum number of minutes required to prepare the dishes.## sample
3 6 2
4