#P5706. 【深基2.例8】再分肥宅水
【深基2.例8】再分肥宅水
Problem Description
Now there are milliliters of soda, which will be divided equally among students. Each student needs cups. Now you want to know how many milliliters of drink each student can get (accurate strictly to digits after the decimal point), and how many cups are needed in total.
Input Format
Input a real number and a positive integer , 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.
500.0 3
166.667
6
Hint
For all data, and there are no more than digits after the decimal point, .
Translated by ChatGPT 5