結果
| 問題 | 
                            No.182 新規性の虜
                             | 
                    
| コンテスト | |
| ユーザー | 
                             ajiruajiru
                         | 
                    
| 提出日時 | 2020-02-05 01:02:27 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 306 bytes | 
| コンパイル時間 | 570 ms | 
| コンパイル使用メモリ | 68,780 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-09-21 07:53:10 | 
| 合計ジャッジ時間 | 4,293 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 14 RE * 13 | 
ソースコード
#include <iostream>
#include <vector>
using namespace std;
int main(void) {
	int n, a;
	cin >> n;
	vector<int> counter(100100, 0);
	for (int i = 0; i < n; ++i) {
		cin >> a;
		++counter[a];
	}
	int ans = 0;
	for (int i = 0; i < 100100; ++i)
		if (counter[i] == 1) ++ans;
	cout << ans << endl;
	return 0;
}
            
            
            
        
            
ajiruajiru