結果

問題 No.182 新規性の虜
ユーザー Yug_min_nullYug_min_null
提出日時 2021-10-01 20:17:43
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 336 bytes
コンパイル時間 2,370 ms
コンパイル使用メモリ 196,212 KB
実行使用メモリ 8,068 KB
最終ジャッジ日時 2023-09-26 14:27:37
合計ジャッジ時間 4,568 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 2 ms
4,384 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 42 ms
5,844 KB
testcase_09 AC 71 ms
7,468 KB
testcase_10 AC 60 ms
6,744 KB
testcase_11 AC 53 ms
6,168 KB
testcase_12 AC 19 ms
4,496 KB
testcase_13 AC 2 ms
4,376 KB
testcase_14 AC 2 ms
4,380 KB
testcase_15 AC 2 ms
4,380 KB
testcase_16 AC 1 ms
4,380 KB
testcase_17 AC 2 ms
4,380 KB
testcase_18 AC 29 ms
4,380 KB
testcase_19 AC 23 ms
4,380 KB
testcase_20 AC 15 ms
4,380 KB
testcase_21 AC 33 ms
4,376 KB
testcase_22 AC 18 ms
4,380 KB
testcase_23 AC 1 ms
4,380 KB
testcase_24 AC 55 ms
8,068 KB
testcase_25 AC 16 ms
4,380 KB
testcase_26 AC 9 ms
4,384 KB
testcase_27 AC 1 ms
4,376 KB
evil01.txt AC 66 ms
8,088 KB
evil02.txt AC 68 ms
7,988 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _GLIBCXX_DEBUG
#define ll long long
#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;

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