結果

問題 No.182 新規性の虜
ユーザー izryt(趣味)
提出日時 2016-01-16 04:05:39
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 67 ms / 5,000 ms
コード長 286 bytes
コンパイル時間 1,349 ms
コンパイル使用メモリ 165,320 KB
実行使用メモリ 8,064 KB
最終ジャッジ日時 2024-12-26 20:08:00
合計ジャッジ時間 3,052 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main()
{
    int N; cin >> N;

    map<int, int> m;

    for (int i = 0; i < N; ++i) {
        int a; cin >> a;
        m[a]++;
    }

    int cnt = 0;

    for (auto &item : m) if (item.second == 1) cnt++;

    cout << cnt << endl;
}
0