MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / main

Function main

CSES_Problems/Distinct_Numbers/solution.cpp:10–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8*/
9
10signed main() {
11 int n;
12 cin >> n;
13 set<int> s;
14 for(int i = 0; i < n; i++) {
15 int x;
16 cin >> x;
17 s.insert(x);
18 }
19 cout << (int)s.size() <<"\n";
20 return 0;
21}

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected