【例50.2】 计算书费
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Description
Below is a price list for books:
- Introduction to Computing yuan/book
- Data Structures and Algorithms yuan/book
- Digital Logic yuan/book
- C++ Programming Tutorial yuan/book
- Artificial Intelligence yuan/book
- Computer Architecture yuan/book
- Compiler Principles yuan/book
- Operating Systems yuan/book
- Computer Networks yuan/book
- JAVA Programming yuan/book
Given the quantity of each book purchased, calculate the total cost.
Input Format
One line containing integers (between and inclusive), representing the quantity of each book purchased: "Introduction to Computing", "Data Structures and Algorithms", "Digital Logic", "C++ Programming Tutorial", "Artificial Intelligence", "Computer Architecture", "Compiler Principles", "Operating Systems", "Computer Networks", and "JAVA Programming". The integers are separated by spaces.
Output Format
One line containing a floating-point number , representing the total cost, rounded to one decimal place.
Sample
1 5 8 10 5 1 1 2 3 42140.2
20251129 B班作业(8)
- Status
- Done
- Problem
- 6
- Open Since
- 2025-11-29 0:00
- Deadline
- 2025-12-7 23:59
- Extension
- 24 hour(s)