結果
| 問題 | No.182 新規性の虜 |
| コンテスト | |
| ユーザー |
RCCW
|
| 提出日時 | 2017-02-05 17:00:25 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 283 bytes |
| 記録 | |
| コンパイル時間 | 1,384 ms |
| コンパイル使用メモリ | 159,444 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-24 06:34:25 |
| 合計ジャッジ時間 | 4,333 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 WA * 1 RE * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin>>n;
vector<long long>vec(n+1);
long long a[n];
for (int i = 0; i < n; ++i) {
cin>>a[i];
vec[a[i]]++;
}
int counter=0;
for (int j = 0; j < n; ++j) {
if(vec[a[j]]==1){
counter+=1;
}
}
cout<<counter<<endl;
}
RCCW