結果

問題 No.182 新規性の虜
ユーザー kekenxkekenx
提出日時 2020-02-16 20:55:14
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 58 ms / 5,000 ms
コード長 317 bytes
コンパイル時間 2,796 ms
コンパイル使用メモリ 168,228 KB
実行使用メモリ 8,320 KB
最終ジャッジ日時 2024-04-16 03:41:20
合計ジャッジ時間 3,806 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 2 ms
5,376 KB
testcase_06 AC 2 ms
5,376 KB
testcase_07 AC 2 ms
5,376 KB
testcase_08 AC 28 ms
6,272 KB
testcase_09 AC 58 ms
7,808 KB
testcase_10 AC 49 ms
7,168 KB
testcase_11 AC 36 ms
6,656 KB
testcase_12 AC 13 ms
5,376 KB
testcase_13 AC 2 ms
5,376 KB
testcase_14 AC 2 ms
5,376 KB
testcase_15 AC 2 ms
5,376 KB
testcase_16 AC 2 ms
5,376 KB
testcase_17 AC 2 ms
5,376 KB
testcase_18 AC 20 ms
5,376 KB
testcase_19 AC 16 ms
5,376 KB
testcase_20 AC 10 ms
5,376 KB
testcase_21 AC 22 ms
5,376 KB
testcase_22 AC 13 ms
5,376 KB
testcase_23 AC 2 ms
5,376 KB
testcase_24 AC 38 ms
8,320 KB
testcase_25 AC 11 ms
5,376 KB
testcase_26 AC 6 ms
5,376 KB
testcase_27 AC 2 ms
5,376 KB
evil01.txt AC 41 ms
8,448 KB
evil02.txt AC 42 ms
8,320 KB
権限があれば一括ダウンロードができます

ソースコード

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