結果
問題 | No.182 新規性の虜 |
ユーザー |
![]() |
提出日時 | 2015-05-05 22:07:55 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 55 ms / 5,000 ms |
コード長 | 307 bytes |
コンパイル時間 | 932 ms |
コンパイル使用メモリ | 65,624 KB |
実行使用メモリ | 8,064 KB |
最終ジャッジ日時 | 2024-12-26 19:09:38 |
合計ジャッジ時間 | 2,439 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include <iostream> #include <map> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); int n; cin>>n; map<int, int> a; for(int i=0;i<n;++i) { int t; cin>>t; a[t]++; } int res=0; for(auto& v: a) res+=v.second==1; cout<<res<<endl; }