結果
問題 |
No.182 新規性の虜
|
ユーザー |
![]() |
提出日時 | 2015-04-16 23:39:51 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 402 bytes |
コンパイル時間 | 1,539 ms |
コンパイル使用メモリ | 158,032 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-04 15:12:06 |
合計ジャッジ時間 | 4,187 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 RE * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0;i<(n);i++) #define MP make_pair #define PB push_back typedef long long ll; int main(){ bool used[100001]; int cnt[100001]; rep(i,100001){ used[i]=false; cnt[i]=0; } int n; cin>>n; rep(i,n){ int a; cin>>a; used[a]=true; cnt[a]++; } int ans=0; rep(i,100001)if(used[i])if(cnt[i]==1)ans++; cout<<ans<<endl; }