結果

問題 No.182 新規性の虜
ユーザー ui_mtcui_mtc
提出日時 2020-03-30 17:54:45
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 81 ms / 5,000 ms
コード長 371 bytes
コンパイル時間 1,582 ms
コンパイル使用メモリ 170,944 KB
実行使用メモリ 9,628 KB
最終ジャッジ日時 2023-09-04 06:12:07
合計ジャッジ時間 3,438 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 1 ms
4,376 KB
testcase_08 AC 48 ms
6,580 KB
testcase_09 AC 81 ms
8,628 KB
testcase_10 AC 69 ms
7,964 KB
testcase_11 AC 56 ms
7,164 KB
testcase_12 AC 22 ms
5,016 KB
testcase_13 AC 1 ms
4,380 KB
testcase_14 AC 2 ms
4,376 KB
testcase_15 AC 1 ms
4,380 KB
testcase_16 AC 2 ms
4,376 KB
testcase_17 AC 1 ms
4,376 KB
testcase_18 AC 37 ms
4,376 KB
testcase_19 AC 28 ms
4,380 KB
testcase_20 AC 18 ms
4,376 KB
testcase_21 AC 42 ms
4,376 KB
testcase_22 AC 22 ms
4,376 KB
testcase_23 AC 1 ms
4,376 KB
testcase_24 AC 72 ms
9,628 KB
testcase_25 AC 16 ms
4,376 KB
testcase_26 AC 10 ms
4,380 KB
testcase_27 AC 2 ms
4,380 KB
evil01.txt AC 84 ms
9,720 KB
evil02.txt AC 82 ms
9,612 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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