#K46107. Calculate Employee Bonuses
Calculate Employee Bonuses
Calculate Employee Bonuses
You are given the number of minutes worked by each employee. Your task is to calculate the bonus for each employee based on their working time.
The bonus is assigned according to the following rules using the employee's total working minutes \(t\):
- If \(t \geq 2400\), then bonus = 100.
- If \(1800 \leq t < 2400\), then bonus = 75.
- If \(1200 \leq t < 1800\), then bonus = 50.
- If \(600 \leq t < 1200\), then bonus = 25.
- If \(t < 600\), then bonus = 0.
The program should read the input from stdin and output the bonuses separated by a space on a single line to stdout.
inputFormat
The first line of input contains a single integer \(n\) representing the number of employees. The second line contains \(n\) integers separated by spaces, where each integer represents the minutes worked by an employee.
outputFormat
Output a single line containing \(n\) integers separated by a space. Each integer is the bonus corresponding to the employee's worked minutes.
## sample5
2789 1220 599 1850 2401
100 50 0 75 100