結果

問題 No.182 新規性の虜
ユーザー yomo3
提出日時 2020-05-07 22:49:42
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 63 ms / 5,000 ms
コード長 348 bytes
コンパイル時間 1,513 ms
コンパイル使用メモリ 173,088 KB
実行使用メモリ 8,192 KB
最終ジャッジ日時 2024-07-03 09:38:20
合計ジャッジ時間 2,958 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
    int N; cin >> N;
    // unordered_map<int, int> m;
    map<int, int> m;
    for (int i = 0; i < N; i++) {
        int A; cin >> A;
        m[A]++;
    }
    int c = count_if(m.begin(), m.end(), [](const pair<int,int>& p) {
        return p.second==1;
    });
    cout << c << endl;
}
0