题解 | #明明的随机数#
明明的随机数
http://www.nowcoder.com/practice/3245215fffb84b7b81285493eae92ff0
#include<iostream>
#include<set>
#include<algorithm>
using namespace std;
int main()
{
int n;
while(cin>>n)
{
set<int>s;
while(n--)
{
int d;
cin>>d;
s.insert(d);
}
set<int>::iterator iter;
iter=s.begin();
while(iter!=s.end())
{
cout<<*iter<<endl;
iter++;
}
}
return 0;
}