結果

問題 No.182 新規性の虜
ユーザー springroll
提出日時 2018-10-25 01:44:46
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 78 ms / 5,000 ms
コード長 299 bytes
コンパイル時間 1,702 ms
コンパイル使用メモリ 175,428 KB
実行使用メモリ 8,320 KB
最終ジャッジ日時 2024-11-19 05:38:45
合計ジャッジ時間 3,314 ms
ジャッジサーバーID
(参考情報)
judge3 / 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 cnt=0;
	for (auto itr = m.begin(); itr != m.end(); itr++) {
		if(itr->second == 1) cnt++;
	}
	cout << cnt << endl;
}
0