結果

問題 No.182 新規性の虜
ユーザー GeckoCPPSonataGeckoCPPSonata
提出日時 2019-08-31 21:20:16
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 48 ms / 5,000 ms
コード長 570 bytes
コンパイル時間 2,172 ms
コンパイル使用メモリ 200,396 KB
最終ジャッジ日時 2025-01-07 16:12:25
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define PRINT(n) cout << n << "\n";
#define REP(i,n)  for(int i=0;i<(int)n;++i)
void no182();
int main() {cin.tie(0); ios::sync_with_stdio(false); no182();}

/********************************/
/** yukicoder No.182           **/
/** by MoonlightSonata         **/
/********************************/

void no182(){
    int n, ans=0;
    cin >> n;
    vector<int> a(n);
    map<int, int> m;
    REP(i,n){
        cin >> a[i];
        m[a[i]]++;
    }
    for(auto i : m){
        if(i.second == 1) ans++;
    }
    PRINT(ans)
}
0