結果

問題 No.182 新規性の虜
ユーザー beet
提出日時 2018-06-14 23:34:52
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 78 ms / 5,000 ms
コード長 284 bytes
コンパイル時間 1,560 ms
コンパイル使用メモリ 174,328 KB
実行使用メモリ 9,728 KB
最終ジャッジ日時 2024-06-30 14:36:49
合計ジャッジ時間 3,717 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

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