結果

問題 No.182 新規性の虜
ユーザー beetbeet
提出日時 2018-06-14 23:34:52
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 83 ms / 5,000 ms
コード長 284 bytes
コンパイル時間 1,615 ms
コンパイル使用メモリ 171,912 KB
実行使用メモリ 9,516 KB
最終ジャッジ日時 2023-09-13 04:24:30
合計ジャッジ時間 4,224 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
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 2 ms
4,380 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 49 ms
6,568 KB
testcase_09 AC 83 ms
8,760 KB
testcase_10 AC 68 ms
7,996 KB
testcase_11 AC 56 ms
7,112 KB
testcase_12 AC 21 ms
4,892 KB
testcase_13 AC 1 ms
4,376 KB
testcase_14 AC 1 ms
4,380 KB
testcase_15 AC 2 ms
4,376 KB
testcase_16 AC 1 ms
4,376 KB
testcase_17 AC 2 ms
4,376 KB
testcase_18 AC 31 ms
4,380 KB
testcase_19 AC 23 ms
4,380 KB
testcase_20 AC 15 ms
4,376 KB
testcase_21 AC 35 ms
4,380 KB
testcase_22 AC 18 ms
4,380 KB
testcase_23 AC 1 ms
4,376 KB
testcase_24 AC 59 ms
9,516 KB
testcase_25 AC 15 ms
4,376 KB
testcase_26 AC 9 ms
4,380 KB
testcase_27 AC 1 ms
4,384 KB
evil01.txt AC 72 ms
9,720 KB
evil02.txt AC 71 ms
9,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
using Int = long long;
//INSERT ABOVE HERE
signed main(){
  Int n;
  cin>>n;
  map<Int, Int> m;
  for(Int i=0;i<n;i++){
    Int a;
    cin>>a;
    m[a]++;
  }
  Int ans=0;
  for(auto p:m) ans+=p.second==1;
  cout<<ans<<endl;
  return 0;
}
0