#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
int N;
vector<int>v;
cin >> N;
for (int i = 0; i < N; i++) {
int number;
cin >> number;
if (!(find(v.begin(), v.end(), number) != v.end()))
v.push_back(number);
}
sort(v.begin(), v.end());
for (int i : v) {
cout << i << " ";
}
}
'Algorithm ๐ง๐ปโ๐ป > ๋ฐฑ์ค(BOJ)' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค,c++] 10872๋ฒ - ํฉํ ๋ฆฌ์ผ (0) | 2021.10.25 |
---|---|
[๋ฐฑ์ค,c++] 10871๋ฒ - X๋ณด๋ค ์์ ์ (0) | 2021.10.25 |
[๋ฐฑ์ค,c++] 10870๋ฒ - ํผ๋ณด๋์น ์5 (0) | 2021.10.25 |
[๋ฐฑ์ค,c++] 10866๋ฒ - ๋ฑ (0) | 2021.10.25 |
[๋ฐฑ์ค,c++] 10845๋ฒ - ํ (0) | 2021.10.25 |
[๋ฐฑ์ค,c++] 10828๋ฒ - ์คํ (0) | 2021.10.25 |
๋๊ธ