結果

問題 No.182 新規性の虜
ユーザー _EnumHack
提出日時 2016-01-17 01:07:54
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 27 ms / 5,000 ms
コード長 327 bytes
コンパイル時間 2,213 ms
コンパイル使用メモリ 164,856 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2024-12-26 20:08:11
合計ジャッジ時間 2,973 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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 long long,unsigned long long> h;
    cin >> n;
    while(cin >> n)
        ++h[n];
    n=0;
    for(auto&& e : h)
        n += (e.second==1);
    cout << n << endl;
}
0