結果
問題 | No.182 新規性の虜 |
ユーザー |
|
提出日時 | 2015-06-16 17:41:29 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 94 ms / 5,000 ms |
コード長 | 287 bytes |
コンパイル時間 | 830 ms |
コンパイル使用メモリ | 65,628 KB |
実行使用メモリ | 8,064 KB |
最終ジャッジ日時 | 2024-12-26 19:24:20 |
合計ジャッジ時間 | 3,041 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
#include<iostream> #include<map> #define MAX 100000000 using namespace std; int main(){ int n; int cnt=0; map<int,int> m; cin>>n; for(int i=0;i < n;i++){ int ai; cin>>ai; m[ai]++; } for(auto tmp:m){ cnt += tmp.second==1 ? 1 : 0; } cout<<cnt<<endl; }