#C1840. Employee Training Eligibility
Employee Training Eligibility
Employee Training Eligibility
In this problem, you are given the scores of N employees and a threshold score T. Your task is to determine how many employees have scores strictly less than T, which means they need additional training.
The input is provided via standard input (stdin) and the output should be printed to standard output (stdout). The input format has the first line containing two integers, N (the number of employees) and T (the threshold score), followed by a second line with N space-separated integers representing each employee's score.
Your program must count the number of employees whose scores are less than T and output that count.
Mathematical formulation: Let ( scores = {s_1, s_2, \dots, s_N} ). You need to compute ( \text{result} = \sum_{i=1}^{N} [s_i < T] ), where ([s_i < T]) is 1 if (s_i < T) and 0 otherwise.
inputFormat
The input from stdin consists of two lines. The first line contains two integers: N (the number of employees) and T (the training threshold). The second line contains N space-separated integers representing the scores of each employee.
outputFormat
Output a single integer to stdout: the number of employees whose scores are strictly less than T.## sample
5 60
49 85 62 77 54
2