結果
| 問題 | No.182 新規性の虜 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-04-15 02:50:01 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 79 ms / 5,000 ms |
| コード長 | 384 bytes |
| 記録 | |
| コンパイル時間 | 720 ms |
| コンパイル使用メモリ | 66,716 KB |
| 実行使用メモリ | 8,064 KB |
| 最終ジャッジ日時 | 2024-12-27 03:01:58 |
| 合計ジャッジ時間 | 2,699 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
#include <iostream>
#include <map>
using namespace std;
int main() {
int n, a, cnt = 0;
map<int, int> table;
cin >> n;
for(int i=0;i<n;++i){
cin >> a;
if(table.find(a) == table.end()){
table[a] = 1;
}else{
++table[a];
}
}
for(map<int, int>::iterator it=table.begin();it!=table.end();++it){
if((*it).second == 1)++cnt;
}
cout << cnt << endl;
return 0;
}