結果

問題 No.182 新規性の虜
ユーザー take000
提出日時 2020-03-28 20:59:03
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 65 ms / 5,000 ms
コード長 436 bytes
コンパイル時間 2,031 ms
コンパイル使用メモリ 166,984 KB
実行使用メモリ 8,064 KB
最終ジャッジ日時 2025-01-02 12:18:44
合計ジャッジ時間 4,234 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
using ll = long long;
using namespace std;
const int INF = 1e9;

int main() {
    int N;
    cin >> N;
    map<int, int> mp;
    rep(i,N){
        int a;
        cin >> a;
        mp[a]++;
    }

    int ans = 0;
    for (auto itr = mp.begin(); itr != mp.end(); ++itr) {
        if(itr->second==1)
            ans++;
    }

    cout << ans << endl;

    return 0;
}
0