L12 - A

public
yeskendir.sultanov Mar 31, 2024 Never 40
Clone
C++ l12a.cpp 16 lines (14 loc) | 254 Bytes
1
#include <bits/stdc++.h>
2
3
using namespace std;
4
5
int main() {
6
int n;
7
cin >> n;
8
set<int> b;
9
for (int i = 0; i < n; ++i) {
10
int x;
11
cin >> x;
12
b.insert(x);
13
}
14
cout << b.size();
15
return 0;
16
}
17
18