結果

問題 No.182 新規性の虜
ユーザー 紙ぺーぱー
提出日時 2015-05-15 15:41:49
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 51 ms / 5,000 ms
コード長 276 bytes
コンパイル時間 969 ms
コンパイル使用メモリ 70,232 KB
実行使用メモリ 7,808 KB
最終ジャッジ日時 2024-12-26 19:16:34
合計ジャッジ時間 2,499 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <unordered_map>
using namespace std;
int n, x;
unordered_map<int, int> m;
int main(){
	cin >> n;
	m.rehash(200000);
	for (int i = 0; i < n; i++){
		cin >> x;
		m[x]++;
	}
	x = 0;
	for (auto &k: m){
		if (k.second == 1)x++;
	}
	cout << x << endl;
}
0