B. 【例50.2】 计算书费

    Type: Default 1000ms 128MiB

【例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:

  1. Introduction to Computing 28.928.9 yuan/book
  2. Data Structures and Algorithms 32.732.7 yuan/book
  3. Digital Logic 45.645.6 yuan/book
  4. C++ Programming Tutorial 7878 yuan/book
  5. Artificial Intelligence 3535 yuan/book
  6. Computer Architecture 86.286.2 yuan/book
  7. Compiler Principles 27.827.8 yuan/book
  8. Operating Systems 4343 yuan/book
  9. Computer Networks 5656 yuan/book
  10. JAVA Programming 6565 yuan/book
    Given the quantity of each book purchased, calculate the total cost.

Input Format

One line containing 1010 integers (between 00 and 100100 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 ff, representing the total cost, rounded to one decimal place.

Sample

1 5 8 10 5 1 1 2 3 4
2140.2

20251129 B班作业(8)

Not Claimed
Status
Done
Problem
6
Open Since
2025-11-29 0:00
Deadline
2025-12-7 23:59
Extension
24 hour(s)