結果
| 問題 | No.182 新規性の虜 |
| コンテスト | |
| ユーザー |
184
|
| 提出日時 | 2015-04-16 23:25:44 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 50 ms / 5,000 ms |
| コード長 | 370 bytes |
| 記録 | |
| コンパイル時間 | 517 ms |
| コンパイル使用メモリ | 72,032 KB |
| 実行使用メモリ | 8,448 KB |
| 最終ジャッジ日時 | 2026-06-01 14:58:57 |
| 合計ジャッジ時間 | 3,545 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <map>
#include <vector>
using namespace std;
int main(){
int n;scanf("%d",&n);
int ans=0;map<int,int> cnt;
int num;
for(int i=0;i<n;i++){scanf("%d",&num);cnt[num]++;}
for(auto it=cnt.begin();it!=cnt.end();it++)if(it->second==1)ans++;
printf("%d\n",ans);
return 0;
}
184