結果

問題 No.182 新規性の虜
ユーザー nao109
提出日時 2023-08-16 14:22:43
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 82 ms / 5,000 ms
コード長 374 bytes
コンパイル時間 2,068 ms
コンパイル使用メモリ 198,532 KB
最終ジャッジ日時 2025-02-16 08:45:15
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define fi first
#define se second
int main(){
    int n;
    cin >> n;
    map<int, int> cnt;
    for(int i = 0; i < n; i++){
        int a;
        cin >> a;
        cnt[a]++;
    }

    int ans = 0;
    for(auto [i, cnt] : cnt){
        if(cnt == 1) ans++;
    }
    cout << ans << endl;
    return 0;
}
0