시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 128 MB | 399 | 322 | 287 | 81.073% |
The accounting office is having troubling with billing each department for the supplies purchased last semester. Below is a chart of all the supplies and how much they cost. You must write a program that reads a list of the supplies and computes the total cost.
Item | Cost |
---|---|
Paper | 57.99 |
Printer | 120.50 |
Planners | 31.25 |
Binders | 22.50 |
Calendar | 10.95 |
Notebooks | 11.20 |
Ink | 66.95 |
The input is a list of office supplies with one item per line. End-of- input is denoted by the string “EOI”.
Print the total cost of all the items in the list. The output must start with a dollar sign, “$” and the total printed with exactly two decimal digits.
Binders Calendar Ink Notebooks Binders Ink EOI
$201.05