結果

問題 No.182 新規性の虜
ユーザー mannshi222
提出日時 2022-04-29 11:31:20
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 313 bytes
コンパイル時間 518 ms
コンパイル使用メモリ 71,036 KB
最終ジャッジ日時 2025-01-28 22:16:50
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 6 WA * 6 RE * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>

using namespace std;

int main()
{
	int N;
	cin >> N;
	vector<int> cnt( N, 0 );

	for( int i = 0; i < N; i++ ) {
		int tmp;
		cin >> tmp;
		cnt[tmp]++;
	}
	int res = 0;
	for( int i = 0; i < N; i++ ) {
		if( cnt[i] == 1 ) {
			res++;
		}
	}
	cout << res << endl;
	return 0;
}
0