結果

問題 No.182 新規性の虜
ユーザー bdqp ☪️
提出日時 2020-03-31 02:26:51
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 70 ms / 5,000 ms
コード長 371 bytes
コンパイル時間 1,610 ms
コンパイル使用メモリ 173,676 KB
実行使用メモリ 8,192 KB
最終ジャッジ日時 2024-06-23 12:25:10
合計ジャッジ時間 3,297 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
// 条件を見落としていませんか?
int main () {
    map<int, int> mp;
    int N;
    cin >> N;
    for (int i = 0; i < N; i++) {
        int A;
        cin >> A;
        mp[A]++;
    }
    int ans = 0;
    for (auto x: mp) {
        if (x.second == 1) ans++;
    }
    cout << ans << endl;
}
0