結果

問題 No.182 新規性の虜
ユーザー gotutiyan
提出日時 2017-10-07 15:16:47
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
RE  
実行時間 -
コード長 544 bytes
コンパイル時間 692 ms
コンパイル使用メモリ 79,208 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-17 04:29:16
合計ジャッジ時間 4,752 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13 WA * 1 RE * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _CRT_SECURE_NO_WARNINGS

#include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <fstream>
#include <set>
#include <utility>
#include <algorithm>

#define rep(i,p,n) for(int i=p;i<n;i++)
#define lli long long int
#define vi vector<int> 

using namespace std;

int main() {
	int n[100001] = { 0 };
	int nn;
	cin >> nn;
	for (int i = 0; i < nn; i++) {
		int num;
		cin >> num;
		n[num]++;
	}

	int count = 0;
	for (int i = 0; i < 100000; i++) {
		if (n[i] == 1)count++;
	}

	cout << count << endl;

	return 0;
}
0