結果
問題 |
No.182 新規性の虜
|
ユーザー |
![]() |
提出日時 | 2016-09-05 16:43:21 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 458 bytes |
コンパイル時間 | 501 ms |
コンパイル使用メモリ | 66,568 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-15 20:28:29 |
合計ジャッジ時間 | 5,914 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 27 |
ソースコード
#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(1000000000, 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; }