Advertisement
elephantsarecool

el2qnn

Jan 24th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. int a[111111];
  4. int main()
  5. {
  6.     int n,x;
  7.     cin>>n;
  8.     for(int i=0;i<n;++i)
  9.     {
  10.         cin>>x;
  11.         a[x]++;
  12.     }
  13.     for(int i=0;i<111111;++i)
  14.         if(a[i])cout<<i<<' ';
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement