11973 | 2024-11-22 15:09:40 | JoKoBo | Kisvakond a cserépben | cpp17 | Accepted 100/100 | 3ms | 508 KiB |
#include <fstream>
#include <iostream>
#include <vector>
using namespace std;
int main() {
// uncomment the following lines if you want to read/write from files
// ifstream cin("input.txt");
// ofstream cout("output.txt");
int N, ans = 0, t;
cin >> N;
for (int i = 0; i < N; i++) {
cin >> t;
if (1982 <= t)
ans++;
}
cout << ans << "\n";
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 | 508 KiB | ||||
5 | Accepted | 1ms | 320 KiB | ||||
6 | Accepted | 2ms | 500 KiB | ||||
7 | Accepted | 2ms | 320 KiB | ||||
8 | Accepted | 2ms | 320 KiB | ||||
9 | Accepted | 3ms | 320 KiB | ||||
10 | Accepted | 3ms | 320 KiB | ||||
11 | Accepted | 3ms | 320 KiB |