結果
| 問題 |
No.182 新規性の虜
|
| コンテスト | |
| ユーザー |
tetsuzuki1115
|
| 提出日時 | 2017-09-23 20:25:35 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 101 ms / 5,000 ms |
| コード長 | 781 bytes |
| コンパイル時間 | 1,034 ms |
| コンパイル使用メモリ | 90,600 KB |
| 実行使用メモリ | 10,112 KB |
| 最終ジャッジ日時 | 2024-12-27 19:27:40 |
| 合計ジャッジ時間 | 3,252 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <cstring>
#include <math.h>
#include <cmath>
#include <limits.h>
#include <map>
#include <set>
#include <queue>
#include <algorithm>
#include <functional>
#include <stdio.h>
using namespace std;
long long MOD = 1000000007;
int main() {
int ans = 0;
int N;
cin >> N;
map<long long, int> M;
vector<long long> A(N);
for ( int i = 0; i < N; i++ ) {
long long a;
cin >> a;
A[i] = a;
if ( !M.count(a) ) {
M.insert( make_pair(a, 1) );
}
else {
M[a]++;
}
}
for ( auto& a : A ) {
if ( M[a] == 1 ) { ans++; }
}
cout << ans << endl;
return 0;
}
tetsuzuki1115