結果
問題 |
No.182 新規性の虜
|
ユーザー |
|
提出日時 | 2024-05-25 00:11:27 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 60 ms / 5,000 ms |
コード長 | 473 bytes |
コンパイル時間 | 1,914 ms |
コンパイル使用メモリ | 172,880 KB |
実行使用メモリ | 7,944 KB |
最終ジャッジ日時 | 2024-12-20 19:32:11 |
合計ジャッジ時間 | 4,031 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
外部呼び出し有り |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; using vll = vector<long long>; int main() { ll n; cin>>n; unordered_map<ll,ll> mp; for(ll i=0;i<n;i++){ ll j; cin>>j; if(mp.find(j)==mp.end()){ mp[j]=1; }else{ mp[j]++; } } ll ans=0; for(const auto &i:mp){ if(i.second==1){ ans+=1; } } cout<<ans<<endl; system("pause"); }