53. Spiced Pie

Time Limit: 1 seconds

Memory Limit: 128 MB

Rating: 900

Problem Statement

The galactic kitchen is baking some spiced pies. He has some ingredients, but different amounts of each ingredient. The recipe for one spiced pie is: $1$ cup flour $\frac{1}{2}$ teaspoon salt $3$ tablespoons cold water $2$ cups spice $1$ can evaporated milk $\frac{1}{2}$ teaspoon ground cinnamon Output the most spiced pies he can bake with the ingredients he has.

Input

One line (float), separated by spaces. $n_1$ cups of flour $n_2$ teaspoons of salt $n_3$ tablespoons of cold water $n_4$ cups of spiced $n_5$ cans of evaporated milk $n_6$ teaspoons ground cinnamon

Output

Output the number of pumpkin pies Hiroto can bake.

Sample Cases
Sample Input 0:
2.0 2.0 3.0 2.0 5.0 0.5

Sample Output 0:
1
Explanation

Not available for this problem.

Sources

KL Coding Cup October 2024 > Problem 5

Submit | Back