結果

問題 No.182 新規性の虜
ユーザー ui_mtc
提出日時 2020-03-30 17:54:45
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 371 bytes
コンパイル時間 1,775 ms
コンパイル使用メモリ 173,108 KB
実行使用メモリ 9,728 KB
最終ジャッジ日時 2024-06-22 05:35:21
合計ジャッジ時間 3,334 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

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