#C4067. Employee Bonus Determination
Employee Bonus Determination
Employee Bonus Determination
You are given information on several stores. For each store, you are given the number of employees, their individual working hours, and a bonus threshold. An employee receives a bonus if their working hours are at least the given threshold.
Your task is to determine which employees receive a bonus for each store. For each store, output a series of numbers where 1 indicates the employee receives a bonus and 0 indicates otherwise.
Note: Input is read from standard input (stdin) and output is written to standard output (stdout).
inputFormat
The first line of input contains an integer T representing the number of stores. For each store, there are three lines of input:
- The first line contains an integer N representing the number of employees.
- The second line contains N space-separated integers representing the hours worked by each employee.
- The third line contains an integer H representing the bonus threshold.
outputFormat
For each store, output a single line containing N space-separated integers. Each integer should be 1 if the corresponding employee's working hours are greater than or equal to H, and 0 otherwise.
## sample1
3
100 200 300
250
0 0 1
</p>