12143 | 2024-12-04 12:13:59 | TortelliniJr | Kisvakond a cserépben | cpp17 | Accepted 100/100 | 4ms | 500 KiB |
#include <iostream>
using namespace std;
int main()
{
int n, m; int r = 0;
cin >> n;
for (int i = 0; i < n; i++)
{
cin >> m;
if (m >= 1982)
{
r++;
}
}
cout << r << 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 | 2ms | 400 KiB | ||||
7 | Accepted | 2ms | 320 KiB | ||||
8 | Accepted | 3ms | 320 KiB | ||||
9 | Accepted | 4ms | 500 KiB | ||||
10 | Accepted | 3ms | 404 KiB | ||||
11 | Accepted | 3ms | 320 KiB |