P17367 [CodeChef] SELFDEF
普及-
题目描述

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 10 and 60 years of age, inclusive of both 10 and 60.

Given the ages of N 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 T, denoting the number of test cases. The description of T test cases follows.
  • The first line of each test case contains a single integer N, the number of women.
  • The second line of each test case contains N space-separated integers A_{1}, A_{2},..., A_{N}, 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 ------

$1 ≤ T ≤ 20$
$1 ≤ N ≤ 100$
$1 ≤ A_{i} ≤ 100$

----- Sample Input 1 ------
3
3
15 23 65
3
15 62 16
2
35 9
----- Sample Output 1 ------
2
2
1
----- explanation 1 ------
Test Case $1$: Out of the women, only the $1^{st}$ and $2^{nd}$ women are eligible for the training because their ages lie in the interval $[10,60]$. Hence the answer is 2.

Test Case $2$: Only the $1^{st}$ and $3^{rd}$ women are eligible for the training because their ages lie in the interval $[10,60]$. Hence the answer is again 2.

Test Case $3$: Only the $1^{st}$ woman with age $35$ is eligible for the training. Hence the answer is $1$.

输入格式

见题面

输出格式

见题面

样例输入
3 3 15 23 65 3 15 62 16 2 35 9
样例输出
2 2 1