結果
| 問題 | No.182 新規性の虜 |
| コンテスト | |
| ユーザー |
y_mazun
|
| 提出日時 | 2015-04-16 23:22:24 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 5,000 ms |
| コード長 | 447 bytes |
| 記録 | |
| コンパイル時間 | 694 ms |
| コンパイル使用メモリ | 83,456 KB |
| 実行使用メモリ | 8,448 KB |
| 最終ジャッジ日時 | 2026-06-01 14:55:49 |
| 合計ジャッジ時間 | 2,378 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
#define FOR(i,c) for(__typeof((c).begin()) i=(c).begin(); i!=(c).end(); i++)
#include <map>
#include <iostream>
#define REP(i,n) for(int i=0; i<(int)(n); i++)
#include <cstdio>
inline int getInt(){ int s; scanf("%d", &s); return s; }
#include <set>
using namespace std;
int main(){
map<int,int> m;
const int n = getInt();
REP(i,n) m[getInt()]++;
int ans = 0;
FOR(it,m) if(it->second == 1)
ans++;
printf("%d\n", ans);
return 0;
}
y_mazun