링크 : https://www.acmicpc.net/problem/10867
#include <iostream>
#include <set>
#include <algorithm>
using namespace std;
int main(){
int N = 0;
cin >> N;
set<int> s;
for(int i = 0; i < N ; i++){
int n = 0;
cin >> n;
s.insert(n);
}
for(auto it=s.begin();it!=s.end();it++){
cout<< *it <<" ";
}
return 0;
}