結果

問題 No.182 新規性の虜
ユーザー bj_k28bj_k28
提出日時 2015-04-23 19:24:43
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 49 ms / 5,000 ms
コード長 1,001 bytes
コンパイル時間 624 ms
コンパイル使用メモリ 88,208 KB
実行使用メモリ 8,060 KB
最終ジャッジ日時 2023-08-27 07:15:40
合計ジャッジ時間 2,296 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 2 ms
4,376 KB
testcase_08 AC 26 ms
5,752 KB
testcase_09 AC 49 ms
7,404 KB
testcase_10 AC 40 ms
6,824 KB
testcase_11 AC 32 ms
6,284 KB
testcase_12 AC 13 ms
4,724 KB
testcase_13 AC 2 ms
4,376 KB
testcase_14 AC 2 ms
4,376 KB
testcase_15 AC 1 ms
4,380 KB
testcase_16 AC 1 ms
4,376 KB
testcase_17 AC 2 ms
4,504 KB
testcase_18 AC 18 ms
4,380 KB
testcase_19 AC 14 ms
4,376 KB
testcase_20 AC 9 ms
4,380 KB
testcase_21 AC 20 ms
4,376 KB
testcase_22 AC 11 ms
4,380 KB
testcase_23 AC 1 ms
4,376 KB
testcase_24 AC 35 ms
8,060 KB
testcase_25 AC 7 ms
4,380 KB
testcase_26 AC 6 ms
4,380 KB
testcase_27 AC 2 ms
4,376 KB
evil01.txt AC 39 ms
8,056 KB
evil02.txt AC 38 ms
8,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<map>
#include<set>
#include<list>
#include<cmath>
#include<queue>
#include<stack>
#include<cstdio>
#include<string>
#include<vector>
#include<complex>
#include<cstdlib>
#include<cstring>
#include<climits>
#include<numeric>
#include<sstream>
#include<iostream>
#include<algorithm>
#include<functional>
#include<cctype>

#define mp make_pair
#define pb push_back
#define REP(i,a,n) for(int i = a;i < (n);i++)
#define rep(i,n) for(int i = 0;i < (n);i++)
#define all(s) s.begin(), s.end()
#define rall(s) s.rbegin(), s.rend()
#define range(x,min,max) ((min) <= (x) && (x) <= (max)) 

using namespace std;

typedef long long LL;
typedef vector<int> VI;
typedef vector<vector<int> > VII;
typedef pair<int,int> PII;

const int DX[]={1,0,-1,0},DY[]={0,-1,0,1};

int main(){
	cin.tie(0);
   	ios::sync_with_stdio(false);
	int N;
	int ans = 0;
	map<int, int> m;
	cin >> N;
	rep(i, N){
		int a;
		cin >> a;
		m[a]++;
	}
	for(auto a : m){
		if(a.second == 1) ans++;
	}
	cout << ans << endl;
	return 0;
}
0