P5706 [Shenji 2.Example 8] Re-divide Soda

Description

Now there are $t$ milliliters of soda, which will be divided equally among $n$ students. Each student needs $2$ cups. Now you want to know how many milliliters of drink each student can get (accurate strictly to $3$ digits after the decimal point), and how many cups are needed in total.

Input Format

Input a real number $t$ and a positive integer $n$, separated by a space.

Output Format

Output two lines. On the first line, output a number with three digits after the decimal point, representing how many milliliters of drink each student can get. On the second line, output a positive integer, representing how many cups are needed in total.

Explanation/Hint

For all data, $0\leq t\leq 10000$ and there are no more than $3$ digits after the decimal point, $1\leq n\leq 1000$. Translated by ChatGPT 5