1 solutions
-
0
C++ :
#include <bits/stdc++.h> using namespace std; int main() { int n, x; set <int> s; set <int> :: iterator it; cin >> n; while (n --) { cin >> x; s.insert(x); } cout << s.size() << endl; for (it = s.begin(); it != s.end(); it ++) cout << *it << ' '; return 0; }
- 1
Information
- ID
- 17312
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By