11974 | 2024-11-22 15:10:38 | JoKoBo | Kisvakond a cserépben | cpp17 | Accepted 100/100 | 4ms | 320 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++;
}
cerr << t;
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 | 320 KiB | ||||
5 | Accepted | 1ms | 320 KiB | ||||
6 | Accepted | 2ms | 320 KiB | ||||
7 | Accepted | 2ms | 320 KiB | ||||
8 | Accepted | 2ms | 320 KiB | ||||
9 | Accepted | 4ms | 320 KiB | ||||
10 | Accepted | 3ms | 320 KiB | ||||
11 | Accepted | 3ms | 320 KiB |