Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int a[111111];
- int main()
- {
- int n,x;
- cin>>n;
- for(int i=0;i<n;++i)
- {
- cin>>x;
- a[x]++;
- }
- for(int i=0;i<111111;++i)
- if(a[i])cout<<i<<' ';
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement