結果

問題 No.182 新規性の虜
ユーザー rogi52
提出日時 2020-11-12 19:48:18
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 51 ms / 5,000 ms
コード長 382 bytes
コンパイル時間 2,170 ms
コンパイル使用メモリ 172,428 KB
実行使用メモリ 8,064 KB
最終ジャッジ日時 2024-07-22 19:45:19
合計ジャッジ時間 3,619 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(){
    cin.tie(0);
    ios::sync_with_stdio(0);

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

    int ans = 0;
    for(auto u : mp){
        if(u.second == 1) ans++;
    }
    cout << ans << endl;
}
0