| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 128 MB | 774 | 613 | 566 | 79.606% |
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
School > PLU High School Programming Contest > PLU 2013 > Novice 6번