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".
InputA series of row separated floats representing prices, with the word "done" succeeding the last item of the customer's cart.
OutputPrint out the total price of all the items.
ExamplesInput4.99 9.99 5.49 19.49 doneOutput
39.959999999999994Input
6.39 38.13 1996.39 105.30 55.99 doneOutput
2202.2