1049: 【04】购物清单▅浮点数
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:100
Solved:44
Description
超市商品的价格是:
apple: 5.80/斤
egg: 6.20/斤
orange: 4.80/斤
输入三行三个整数,表示各买了几斤。
再输出每样商品多少钱,最后总价多少钱。
Input
三行,3个整数。
Output
四行,前3个数表示每样商品多少钱,最后一个数表示总价。
Sample Input Copy
2
3
5
Sample Output Copy
11.6
18.6
24.0
54.2
HINT
n = n * 3.14 可以改写 n *= 3.14
保留一位小数。