結果

問題 No.182 新規性の虜
ユーザー umaumax
提出日時 2017-05-03 01:07:56
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 69 ms / 5,000 ms
コード長 291 bytes
コンパイル時間 662 ms
コンパイル使用メモリ 66,800 KB
実行使用メモリ 8,064 KB
最終ジャッジ日時 2024-12-27 15:24:31
合計ジャッジ時間 2,360 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <map>

using namespace std;

int main(int argc, const char* argv[])
{
	int N;
	cin >> N;
	map<int, int> m;
	int a;
	for (int i = 0; i < N; i++) {
		cin >> a;
		m[a]++;
	}
	int cnt = 0;
	for (auto&& v : m) cnt += v.second == 1;
	cout << cnt << endl;
	return 0;
}
0