錆びついた電波塔 [MISSION LEVEL: D]
1 #include <bits/stdc++.h> 2 #define _for(i,a,b) for(int i = (a);i < (b);i ++) 3 #define pb push_back 4 using namespace std; 5 6 int readint() 7 { 8 int tmp; 9 scanf("%d",&tmp); 10 return tmp; 11 } 12 13 int main() 14 { 15 int n; 16 while(~scanf("%d",&n)) 17 { 18 int cnt = 0; 19 _for(i,0,n) 20 if(readint()>5) 21 cnt ++; 22 cout << cnt << endl; 23 } 24 return 0; 25 }