結果
問題 |
No.182 新規性の虜
|
ユーザー |
![]() |
提出日時 | 2022-09-23 13:04:38 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 91 ms / 5,000 ms |
コード長 | 296 bytes |
コンパイル時間 | 1,870 ms |
コンパイル使用メモリ | 200,260 KB |
最終ジャッジ日時 | 2025-02-07 13:51:34 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define int long long signed main(){ int N; cin>>N; vector<int> S(N); map<int,int> m; for(int i=0;i<N;i++){ cin>>S[i]; m[S[i]]++; } int ans = 0; for(int i=0;i<N;i++){ if(m[S[i]] == 1) ans++; } cout<<ans<<endl; }