#C208. Worker Bonus Calculation
Worker Bonus Calculation
Worker Bonus Calculation
You are given the efficiency of several workers, where the efficiency is measured by the number of items produced per hour. A bonus is awarded only if a worker's efficiency exceeds 10. The bonus for a worker is calculated using the formula:
$$bonus = (efficiency - 10) \times 50$$
If the efficiency is 10 or less, the bonus is 0. Your task is to compute the bonus for each worker.
inputFormat
The first line of input contains an integer N, the number of workers. The second line contains N space-separated integers representing the efficiencies of the workers.
outputFormat
Print N space-separated integers representing the bonus for each worker in the same order as the input.## sample
5
12 10 15 8 20
100 0 250 0 500