結果

問題 No.182 新規性の虜
ユーザー RCCW
提出日時 2017-02-05 17:26:29
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 75 ms / 5,000 ms
コード長 273 bytes
コンパイル時間 2,147 ms
コンパイル使用メモリ 165,472 KB
実行使用メモリ 8,192 KB
最終ジャッジ日時 2024-12-27 12:23:58
合計ジャッジ時間 4,123 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
	int N;
	cin >> N;
	vector<int> A(N);
	map<int, int> m;
	for (int i = 0; i < N; i++) {
		cin >> A[i];
		m[A[i]]++;
	}
	int ans = 0;
	for (auto it : m) {
		if (it.second == 1)
			ans++;
	}
	cout << ans << endl;
}

0