407193: GYM102697 164 Cashier

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

164. Cashiertime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output
This problem is worth 10 points.

You are working as a cashier for a supermarket, and items are handed to you to be scanned one by one by the customer. You do not know how many items they have, but after the last item is scanned, the customers usually say, "done".

Input

A series of row separated floats representing prices, with the word "done" succeeding the last item of the customer's cart.

Output

Print out the total price of all the items.

ExamplesInput
4.99
9.99
5.49
19.49
done
Output
39.959999999999994
Input
6.39
38.13
1996.39
105.30
55.99
done
Output
2202.2

加入题单

算法标签: