結果

問題 No.182 新規性の虜
ユーザー _EnumHack
提出日時 2016-01-17 01:12:51
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 29 ms / 5,000 ms
コード長 344 bytes
コンパイル時間 3,543 ms
コンパイル使用メモリ 165,212 KB
実行使用メモリ 7,712 KB
最終ジャッジ日時 2024-12-26 23:26:56
合計ジャッジ時間 5,769 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    unsigned long long n;
    unordered_map<unsigned,unsigned> h;
    cin >> n;
    while(cin >> n)
        ++h[n];
    n=0;
    cout << count_if(h.begin(), h.end(), [](pair<unsigned,unsigned> const& a){return a.second ==1;}) << endl;
}
0