結果

問題 No.182 新規性の虜
ユーザー chacoder1
提出日時 2021-04-08 22:21:20
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 144 ms / 5,000 ms
コード長 315 bytes
コンパイル時間 2,892 ms
コンパイル使用メモリ 198,168 KB
最終ジャッジ日時 2025-01-20 13:10:22
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<n;i++)
  
int main(){
  int n;
  cin>>n;
  int a[n];
  map<int,int>mp;
  rep(i,n){
    cin>>a[i];
    mp[a[i]]++;
  }
  int cnt=0;
  for(auto e:mp){
    if(e.second==1) cnt++;
  }
  cout<<cnt<<endl;
  
  return 0;
}
0