結果

問題 No.182 新規性の虜
ユーザー kuisiba
提出日時 2016-04-07 17:16:49
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 70 ms / 5,000 ms
コード長 342 bytes
コンパイル時間 1,553 ms
コンパイル使用メモリ 65,528 KB
実行使用メモリ 7,936 KB
最終ジャッジ日時 2024-12-27 02:59:37
合計ジャッジ時間 2,152 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <map>

using namespace std;

int main() {
    int n;
    cin >> n;
    map<int, int> m;
    for (int i = 0; i < n; ++i) {
        int temp;
        cin >> temp;
        m[temp]++;
    }
    int count = 0;
    for (auto j : m) {
        if (j.second == 1) count++;
    }
    cout << count << endl;
    return 0;
}
0