1011
签到题,做过最简单的签到题...
1 #include<cstdio> 2 #include<cstring> 3 #include<iostream> 4 #include<algorithm> 5 #include<cmath> 6 #include<vector> 7 #include<set> 8 #include<string> 9 #include<sstream> 10 #include<cctype> 11 #include<map> 12 #include<stack> 13 #include<queue> 14 using namespace std; 15 #define INF 0x3f3f3f3f 16 typedef long long ll; 17 int gcd(int a, int b){return b==0?a:gcd(b,a%b);} 18 19 int main() 20 { 21 // freopen("input.txt", "r", stdin); 22 // freopen("output.txt", "w", stdout); 23 int T, s[1010], ans = 0; 24 scanf("%d", &T); 25 for(int i = 0; i < T; i++) 26 { 27 scanf("%d", &s[i]); 28 if(s[i] <= 35) ans++; 29 } 30 printf("%d\n", ans); 31 return 0; 32 }
时间: 2024-10-10 22:04:56