結果

問題 No.182 新規性の虜
ユーザー zaichu
提出日時 2015-12-19 13:27:07
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
MLE  
(最新)
AC  
(最初)
実行時間 -
コード長 421 bytes
コンパイル時間 638 ms
コンパイル使用メモリ 76,620 KB
実行使用メモリ 817,664 KB
最終ジャッジ日時 2024-09-16 08:56:13
合計ジャッジ時間 7,101 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other MLE * 1 -- * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <string>
#include <array>
#include <algorithm>
#include <unordered_map>
#include <set>
#include <map>
using namespace std;

int main(){
	int n;
	cin >> n;
	map<long long int,int> mp;
	int ans = 0;
	int temp;
	for(int i = 0; i < n; i++){
		cin >> temp;
		mp[temp-1] += 1;
	}
	for(int i = 0; i < mp.size(); i++){
		if(mp[i] == 1) ans++;
	}	
	cout << ans << endl;
	return 0;
}
0