12202 | 2024-12-09 11:27:23 | Csongi | Kisvakond a cserépben | cpp17 | Accepted 100/100 | 2ms | 664 KiB |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int n, s = 0;
cin >> n;
while (n--)
{
int be; cin >> be;
if (be >= 1982)
s++;
}
cout << s << endl;
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 1ms | 320 KiB | ||||
subtask2 | 100/100 | ||||||
2 | Accepted | 1ms | 320 KiB | ||||
3 | Accepted | 1ms | 320 KiB | ||||
4 | Accepted | 1ms | 320 KiB | ||||
5 | Accepted | 1ms | 320 KiB | ||||
6 | Accepted | 1ms | 516 KiB | ||||
7 | Accepted | 1ms | 320 KiB | ||||
8 | Accepted | 2ms | 544 KiB | ||||
9 | Accepted | 2ms | 664 KiB | ||||
10 | Accepted | 2ms | 356 KiB | ||||
11 | Accepted | 2ms | 320 KiB |