#C13469. Apply Discount to Product Prices

    ID: 43010 Type: Default 1000ms 256MiB

Apply Discount to Product Prices

Apply Discount to Product Prices

Given a list of product prices and a discount percentage, compute the new prices after applying the discount. For each product, the discounted price is calculated using the formula: $$price \times \left(1 - \frac{discount}{100}\right)$$. Each resulting price should be rounded to two decimal places.

This problem tests your ability to perform arithmetic operations, handle list inputs, and format the output correctly with fixed precision.

inputFormat

The input is read from standard input (stdin) in the following format:

  1. The first line contains an integer n, the number of products.
  2. The second line contains n floating-point numbers representing the product prices, separated by spaces.
  3. The third line contains a single floating-point number representing the discount percentage.

outputFormat

Output the discounted prices on a single line, separated by a space. Each price must be rounded to two decimal places.

## sample
3
100.0 200.0 300.0
10.0
90.00 180.00 270.00