mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-14 04:38:46 +00:00
21 lines
330 B
C++
21 lines
330 B
C++
#include <iostream>
|
|
#include <set>
|
|
|
|
using std::cin;
|
|
using std::cout;
|
|
const char endl = '\n';
|
|
|
|
int n;
|
|
std::set<int> set;
|
|
|
|
int main() {
|
|
std::ios::sync_with_stdio(false);
|
|
cin >> n;
|
|
for (int i = 1, x; i <= n; i++) {
|
|
cin >> x;
|
|
if (x > 0) set.insert(x);
|
|
}
|
|
cout << set.size() << endl;
|
|
return 0;
|
|
}
|