結果

問題 No.182 新規性の虜
ユーザー keisuke6keisuke6
提出日時 2022-09-23 13:04:38
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 99 ms / 5,000 ms
コード長 296 bytes
コンパイル時間 2,006 ms
コンパイル使用メモリ 206,456 KB
実行使用メモリ 10,252 KB
最終ジャッジ日時 2023-08-23 20:48:57
合計ジャッジ時間 4,371 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 2 ms
4,380 KB
testcase_08 AC 52 ms
6,696 KB
testcase_09 AC 99 ms
8,760 KB
testcase_10 AC 78 ms
8,040 KB
testcase_11 AC 63 ms
7,352 KB
testcase_12 AC 24 ms
4,928 KB
testcase_13 AC 2 ms
4,376 KB
testcase_14 AC 1 ms
4,380 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 40 ms
4,380 KB
testcase_19 AC 30 ms
4,376 KB
testcase_20 AC 19 ms
4,376 KB
testcase_21 AC 45 ms
4,376 KB
testcase_22 AC 23 ms
4,380 KB
testcase_23 AC 1 ms
4,376 KB
testcase_24 AC 70 ms
10,252 KB
testcase_25 AC 16 ms
4,376 KB
testcase_26 AC 10 ms
4,380 KB
testcase_27 AC 2 ms
4,376 KB
evil01.txt AC 82 ms
10,152 KB
evil02.txt AC 82 ms
10,316 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
  int N;
  cin>>N;
  vector<int> S(N);
  map<int,int> m;
  for(int i=0;i<N;i++){
      cin>>S[i];
      m[S[i]]++;
  }
  int ans = 0;
  for(int i=0;i<N;i++){
      if(m[S[i]] == 1) ans++;
  }
  cout<<ans<<endl;
}
0