1966: Fruit class 二

内存限制:128 MB 时间限制:1.000 S
评测方式:文本比较 命题人:
提交:35 解决:18

题目描述

define a Fruit class,including three data filelds,name,place,price and numbers

输入

there are many lines of input,for each line,input the information of a fruit

输出

output the information of the fruit,the total price keeps 1 decimal

样例输入 复制

apple sicuan 10 20.56
orange guangxi 8 54.78
banana zhangzhou 3 59.77

样例输出 复制

apple sicuan 205.6
orange guangxi 438.2
banana zhangzhou 179.3