#C2686. Count the Days Above the Threshold
Count the Days Above the Threshold
Count the Days Above the Threshold
You are given several test cases. For each test case, you are provided with the number of days N and a threshold value K. Then you are given N integers representing the population on each day.
Your task is to count and output the number of days for which the population was strictly greater than the threshold K.
Formally, for each test case, given an array \(A = [a_1, a_2, \dots, a_N]\) and a threshold \(K\), you should compute the number of indices \(i\) such that \(a_i > K\).
Example: For \(N = 5, K = 50\) and \(A = [10, 60, 45, 70, 30]\), the answer is 2 since only 60 and 70 exceed 50.
inputFormat
The first line contains a single integer \(T\) representing the number of test cases. The description of the test cases follows.
For each test case:
- The first line contains two integers \(N\) and \(K\), where \(N\) is the number of days and \(K\) is the threshold.
- The second line contains \(N\) space-separated integers that indicate the population for each day.
All input is read from standard input (stdin).
outputFormat
For each test case, output a single integer on a new line representing the number of days on which the population strictly exceeds \(K\).
The results should be printed to standard output (stdout).
## sample2
5 50
10 60 45 70 30
4 25
20 30 25 40
2
2
</p>