結果

問題 No.182 新規性の虜
コンテスト
ユーザー y_mazun
提出日時 2015-04-16 23:22:24
言語 C++11
(gcc 15.3.0 + boost 1.92.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 29 ms / 5,000 ms
+ 312µs
コード長 447 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 342 ms
コンパイル使用メモリ 84,316 KB
実行使用メモリ 9,852 KB
最終ジャッジ日時 2026-10-08 09:34:51
合計ジャッジ時間 2,430 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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;
}
0