-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSELFDEF.cpp
More file actions
29 lines (22 loc) · 822 Bytes
/
SELFDEF.cpp
File metadata and controls
29 lines (22 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*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.*/
#include<iostream>
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
int n;
cin>>n;
int arr[n];
int count=0;
for(int i = 0;i<n;i++){
cin>>arr[i];
if(arr[i]>=10 and arr[i]<=60)
count++;
}
cout<<count<<endl;
}
return 0;
}