Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- typedef long long ll;
- #define fastread()(ios_base:: sync_with_stdio(false),cin.tie(NULL));
- int main()
- {
- fastread();
- set<int>s;
- int n;
- cin>>n;
- while(n--)
- {
- int a;
- cin>>a;
- s.insert(a);
- }
- for(auto x:s)
- {
- cout<<x<<endl;
- }
- cout<<" "<<s.size()<<" "<<s.empty();
- }
Advertisement
Add Comment
Please, Sign In to add comment