#S0001. 计算商品折扣

计算商品折扣

1. Description

Create a shopping discount calculator. The user inputs multiple product prices (space-separated) and a discount rate. The program should calculate the total price after applying the discount and output the final price (keep 2 decimal places).

2. Input & Output

Input:

  • First input line: product prices (multiple numbers separated by spaces)
  • Second input line: discount rate (integer)

Output:

  • Final price after discount (with 2 decimal places)

Example

# Input: 
50 100 80
7
# Output: 
213.90
# Input: 
200 150
10
# Output: 
315.00