結果

問題 No.182 新規性の虜
ユーザー machy
提出日時 2015-06-10 22:47:22
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 77 ms / 5,000 ms
コード長 343 bytes
コンパイル時間 1,035 ms
コンパイル使用メモリ 68,444 KB
実行使用メモリ 7,936 KB
最終ジャッジ日時 2024-12-26 19:18:56
合計ジャッジ時間 2,228 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <map>

using namespace std;

int main(){
    int N;
    cin >> N;
    map<int,int> cnt;
    for(int i = 0; i < N; i++){
        int v;
        cin >> v;
        cnt[v]++;
    }
    int ans = 0;
    for(auto p : cnt){
        if(p.second == 1) ans++;
    }
    cout << ans << endl;
    return 0;
}
0