링크 : https://www.acmicpc.net/problem/2750
#include<iostream>
#include<algorithm>
#include<set>
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 << '\n';
}
return 0;
}