Huawei社は明確に測定された牛のゲストマシン-2-乱数

#include <iostream>
using namespace std;
int main() {
    int N, n;
    while (cin >> N) {
        int a[1001] = { 0 };
        while (N--) {
            cin >> n;
            a[n] = 1;
        }
        for (int i = 0; i < 1001; i++)
            if (a[i])
                cout << i << endl;
    }
    return 0;
}


URLを回答します。https://www.nowcoder.com/profile/927507200/myFollowings/detail/11757230

オリジナルの記事は、0を発表 ウォンの賞賛0 ビュー19

おすすめ

転載: blog.csdn.net/qq_36587311/article/details/104600944