結果

問題 No.182 新規性の虜
ユーザー 古寺いろは
提出日時 2015-04-16 23:21:28
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 74 ms / 5,000 ms
コード長 269 bytes
コンパイル時間 1,921 ms
コンパイル使用メモリ 165,460 KB
実行使用メモリ 8,216 KB
最終ジャッジ日時 2024-12-26 18:37:41
合計ジャッジ時間 3,553 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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 i: m)
	{
		if (i.second == 1) ans++;
	}
	cout << ans << endl;
}
0