题解 | #明明的随机数#

明明的随机数

http://www.nowcoder.com/practice/3245215fffb84b7b81285493eae92ff0

#include #include using namespace std; int main(void) { int N;

while(cin>>N)
{
    set<int>array;
    int len=N;
    for(int i=0;i<len;i++)
    {
        cin>>N;
        array.insert(N);
    }
    for(set<int>::iterator it=array.begin();it!=array.end();it++)
    {
        cout<< *it<<endl;
    }
}

return 0;

}

全部评论

相关推荐

05-30 12:03
山西大学 C++
offer来了我跪着...:不是骗子,等到测评那一步就知道为啥这么高工资了
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务