結果
問題 |
No.182 新規性の虜
|
ユーザー |
![]() |
提出日時 | 2017-01-04 17:34:52 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 71 ms / 5,000 ms |
コード長 | 282 bytes |
コンパイル時間 | 3,391 ms |
コンパイル使用メモリ | 164,328 KB |
実行使用メモリ | 8,448 KB |
最終ジャッジ日時 | 2024-12-27 11:52:30 |
合計ジャッジ時間 | 3,294 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define REP(i,N) for(int i=0;i<N;i++) int main(){ int N; int count=0; cin>>N; int A[N]; map<int,int> m; REP(i,N){ cin>>A[i]; m[A[i]]++; } for (auto i:m){ if(i.second==1){ count++; } } cout<<count<<endl; return 0; }