結果

問題 No.182 新規性の虜
ユーザー koba-e964
提出日時 2015-05-04 21:46:43
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 74 ms / 5,000 ms
コード長 204 bytes
コンパイル時間 583 ms
コンパイル使用メモリ 63,196 KB
実行使用メモリ 7,936 KB
最終ジャッジ日時 2024-12-26 19:09:29
合計ジャッジ時間 2,263 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <set>
#include <iostream>
using namespace std;

int main(){
int n;
cin>>n;
set<int> a,b;
for(int i=0;i<n;i++){int t;cin>>t;if(a.count(t))b.insert(t);a.insert(t);}
cout<<a.size()-b.size()<<endl;
}
0