結果

問題 No.182 新規性の虜
ユーザー alchemin
提出日時 2019-09-13 12:16:38
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
MLE  
実行時間 -
コード長 437 bytes
コンパイル時間 729 ms
コンパイル使用メモリ 77,176 KB
実行使用メモリ 814,328 KB
最終ジャッジ日時 2024-07-04 03:45:49
合計ジャッジ時間 3,988 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other MLE * 1 -- * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <unordered_map>

using namespace std;

int main() {
    int n;
    std::unordered_map<int, int> ump;
    
    cin >> n;
    
    int tmp = 0;
    for (int i = 0; i < n; i++) {
        cin >> tmp >> std::ws;
        ump[tmp]++;
    }
    
    int ct = 0;
    for (int i = 0; i < ump.size(); i++) {
        if (ump[i] == 1) {
            ct++;
        }
    }
    
    cout << ct << endl;
    
    return 0 ;
}
0