aboutsummaryrefslogtreecommitdiff
path: root/works/life/2020-algorithm-contest/code/1.cpp
blob: 1ae1783dd723d2fe61b94d71309042359072b636 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <iostream>
#include <set>

int main()
{
    int size;
    std::cin >> size;
    std::set<int> s;
    int v;
    for (int i = 0; i< size; i++)
    {
        std::cin >> v;
        s.insert(v);
    }

    for (auto value : s)
    {
        std::cout << value << ' ';
    }

    return 0;
}