結果
問題 | No.182 新規性の虜 |
ユーザー |
|
提出日時 | 2019-12-23 03:43:03 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 60 ms / 5,000 ms |
コード長 | 355 bytes |
コンパイル時間 | 982 ms |
コンパイル使用メモリ | 82,820 KB |
最終ジャッジ日時 | 2025-01-08 14:07:03 |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <map> using namespace std; typedef long long int ll; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int n; cin >> n; map<int,int> mp; for(int i=0;i<n;i++){ int a; cin >> a; mp[a]++; } int ans=0; for(auto p:mp){ if(p.second==1)ans++; } cout << ans << endl; }