結果
| 問題 |
No.182 新規性の虜
|
| コンテスト | |
| ユーザー |
Yut176
|
| 提出日時 | 2016-09-05 16:42:06 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 454 bytes |
| コンパイル時間 | 621 ms |
| コンパイル使用メモリ | 67,200 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-15 20:28:23 |
| 合計ジャッジ時間 | 4,128 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 WA * 1 RE * 13 |
ソースコード
#include<iostream>
#include<algorithm>
#include<stdio.h>
#include<stdlib.h>
#include<vector>
#include<string>
#include<sstream>
#include<math.h>
using namespace std;
int main(){
int n;
cin >> n;
vector<int> a(n);
for(int i=0; i<n; i++) cin >> a[i];
vector<int> ans(100000, 0);
for(int i=0; i<n; i++) ans[ a[i] ]++;
int cnt = 0;
for(int i=0; i<ans.size(); i++){
if( ans[i] == 1 ) cnt++;
}
cout << cnt << endl;
return 0;
}
Yut176