#P5706. Equal Beverage Distribution
Equal Beverage Distribution
Equal Beverage Distribution
You are given $t$ milliliters of a beverage and $n$ students. The beverage is to be distributed equally among the students so that each student receives the same amount of beverage. In addition, each student requires 2 cups for drinking.
Your task is to determine:
- The amount of beverage each student will receive, which must be printed as a floating-point number rounded to exactly three decimal places.
- The total number of cups required for all students.
- $t$: the total milliliters of the beverage (a floating-point or integer value).
- $n$: the number of students (an integer).
- The amount of beverage each student receives, printed as a floating-point number rounded to exactly three decimal places.
- The total number of cups needed.
Mathematically, if each student receives \( \frac{t}{n} \) milliliters, and the total number of cups needed is \( 2 \times n \), then you should output these two values separated by a space.
inputFormat
The input consists of a single line containing two numbers:
The numbers are separated by spaces.
outputFormat
Output a single line containing two values:
Separate the two outputs by a space.
sample
1000 5
200.000 10