結果
| 問題 | No.182 新規性の虜 |
| コンテスト | |
| ユーザー |
saytakaPC
|
| 提出日時 | 2015-04-16 23:39:51 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 402 bytes |
| 記録 | |
| コンパイル時間 | 968 ms |
| コンパイル使用メモリ | 174,712 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-03-25 22:55:09 |
| 合計ジャッジ時間 | 3,202 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
saytakaPC