結果

問題 No.182 新規性の虜
ユーザー Lay_ec
提出日時 2015-04-16 23:25:59
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 111 ms / 5,000 ms
コード長 497 bytes
コンパイル時間 1,117 ms
コンパイル使用メモリ 87,368 KB
実行使用メモリ 10,112 KB
最終ジャッジ日時 2024-12-26 18:45:31
合計ジャッジ時間 3,212 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <cstdio>
#include <functional>
#include <set>
#include <sstream>
#include <map>
#include <queue>
#include <stack>

using namespace std;


int main()
{
	int n;
	cin>>n;

	vector<long long> a(n);
	map<long long,int> m;
	for(int i=0;i<n;i++){
		cin>>a[i];
		m[a[i]]++;
	}

	int res=0;
	for(int i=0;i<n;i++) if(m[a[i]]==1) res++;

	cout<<res<<endl;

	return 0;
}
0