0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-26 04:12:00 +00:00
OI-codes/AcWing/4317/4317.cpp

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;
}