After the phenomenal success of the 36th Chamber of Shaolin, San Te has decided to start 37th Chamber of Shaolin. The aim this time is to equip women with shaolin self-defence techniques.
The only condition for a woman to be eligible for the special training is that she must be between and years of age, inclusive of both and .
Given the ages of women in his village, please help San Te find out how many of them are eligible for the special training.
Input Format
- The first line of input contains a single integer , denoting the number of test cases. The description of test cases follows.
- The first line of each test case contains a single integer , the number of women.
- The second line of each test case contains space-separated integers , the ages of the women.
Output Format
For each test case, output in a single line the number of women eligible for self-defence training.
Constraints
Sample Input 1
3
3
15 23 65
3
15 62 16
2
35 9
Sample Output 1
2
2
1
Explanation
Test Case : Out of the women, only the and women are eligible for the training because their ages lie in the interval . Hence the answer is 2.
Test Case : Only the and women are eligible for the training because their ages lie in the interval . Hence the answer is again 2.
Test Case : Only the woman with age is eligible for the training. Hence the answer is
No comments:
Post a Comment