結果

問題 No.182 新規性の虜
ユーザー yansi819
提出日時 2024-04-01 09:00:39
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 67 ms / 5,000 ms
コード長 366 bytes
コンパイル時間 3,534 ms
コンパイル使用メモリ 257,236 KB
最終ジャッジ日時 2025-02-20 18:44:09
ジャッジサーバーID
(参考情報)
judge3 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll = long long;
using ld = long double;

int n;
map<ll, int> mp;

int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    ll a; cin >> a;
    mp[a]++;
  }
  int ans = 0;
  for (auto p: mp) {
    if (p.second == 1) ans++;
  }
  cout << ans << endl;
  return 0;
}
0