結果

問題 No.182 新規性の虜
ユーザー kekenx
提出日時 2020-02-16 20:55:14
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 45 ms / 5,000 ms
コード長 317 bytes
コンパイル時間 1,589 ms
コンパイル使用メモリ 172,168 KB
実行使用メモリ 8,320 KB
最終ジャッジ日時 2024-10-06 14:42:01
合計ジャッジ時間 3,437 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;
typedef long long ll;

int main() {
  int N;
  scanf("%d", &N);
  map<int, int> m;
  for (int i = 0; i < N; ++i) {
    int a;
    scanf("%d", &a);
    m[a]++;
  }

  int ans = 0;
  for (auto e: m) {
    if (e.second == 1) ans++;
  }
  printf("%d\n", ans);
  return 0;
}
0