#C12085. Total Discounted Price
Total Discounted Price
Total Discounted Price
Given an array of book prices, calculate the total cost after a 20% discount is applied to each price. For each book with price (p), the discounted price is given by (0.8 \times p). The final answer is the sum of these discounted prices, rounded to the nearest integer.
For example, if the prices are [100, 200, 150], then the total discounted price is computed as follows:
(\text{Total} = \text{round}(100 \times 0.8 + 200 \times 0.8 + 150 \times 0.8) = \text{round}(80 + 160 + 120) = \text{round}(360) = 360).
inputFormat
The input is provided via standard input (stdin) and follows this format:
1. The first line contains an integer (N) representing the number of books.
2. The second line contains (N) space-separated integers representing the prices of the books.
For example:3
100 200 150
outputFormat
Output a single integer to standard output (stdout) representing the total discounted price after applying a 20% discount to each price and rounding the result to the nearest integer.
For the input above, the expected output is:360
## sample
3
100 200 150
360
</p>