#33052: c++ ans陣列


yp11151097@yphs.tp.edu.tw (908-30施耀登)


#include<bits/stdc++.h>
using namespace std;
main(){
int a[10];
for(int i=0;i<10;i++) cin>>a[i];
int x;
cin>>x;
int count=0;
for(int j=0;j<10;j++)
if(x+30>=a[j]) count++;
cout<<count<<endl;
}