結果
| 問題 | No.182 新規性の虜 |
| コンテスト | |
| ユーザー |
r2en_
|
| 提出日時 | 2017-07-06 02:53:47 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 402 bytes |
| 記録 | |
| コンパイル時間 | 545 ms |
| コンパイル使用メモリ | 68,288 KB |
| 実行使用メモリ | 7,552 KB |
| 最終ジャッジ日時 | 2024-10-05 20:26:00 |
| 合計ジャッジ時間 | 3,791 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 WA * 4 RE * 13 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
#define rep(i,n) for(int i = 0; i < (n); i++)
#define rep2(i,n) for(int i = 1; i <= (n); i++)
int main(){
int cnt = 0;
vector<int>v(1000000,0);
int n = 0; cin >> n;
vector<int>a(n,0);
rep(i,n){ cin >> a[i]; }
rep(i,n){ v[a[i]] += 1; }
rep2(i,n){ if(v[i] == 1){cnt+=1;} }
cout << cnt << endl;
return 0;
}
r2en_