#C539. Determine Employee Bonuses
Determine Employee Bonuses
Determine Employee Bonuses
You are given the number of employees N, a threshold score T, and a list of performance scores of the employees. For each employee, if the score is greater than or equal to T, they receive a High Bonus, otherwise they receive a Low Bonus.
The problem can be mathematically formulated as follows:
For each employee with score \( s_i \), the bonus is defined as: \[ bonus(s_i) = \begin{cases} \text{High Bonus} & \text{if } s_i \ge T, \\ \text{Low Bonus} & \text{if } s_i < T. \end{cases} \]
You need to read the input from standard input and output the result to standard output.
inputFormat
The input consists of two lines:
- The first line contains two integers separated by space:
N
(the number of employees) andT
(the threshold score). - The second line contains
N
integers separated by spaces representing the performance scores of the employees.
outputFormat
Output N
lines where each line contains the bonus for the corresponding employee. Each bonus is either High Bonus
or Low Bonus
. No extra spaces or lines should be printed.
3 500
480 520 500
Low Bonus
High Bonus
High Bonus
</p>