Toggle navigation
YouTube
Facebook
Telegram
english
english
українська
Algotester 4.3
Build 501
2024-12-30
Log In
Contact Us
College
Sponsors
Donate
Sources
C++ 20
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; set<int> s; for (int i = 0; i < n; i++) { int el; cin >> el; if (el != 0) s.insert(el); } cout << s.size() << '\n'; return 0; }