結果
問題 |
No.182 新規性の虜
|
ユーザー |
|
提出日時 | 2019-07-26 21:03:21 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 66 ms / 5,000 ms |
コード長 | 314 bytes |
コンパイル時間 | 1,750 ms |
コンパイル使用メモリ | 200,076 KB |
最終ジャッジ日時 | 2025-01-07 07:38:34 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; int 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) { if (p.second == 1) ans++; } cout << ans << endl; return 0; }