結果

問題 No.182 新規性の虜
ユーザー kou6839kou6839
提出日時 2016-01-17 02:06:10
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 78 ms / 5,000 ms
コード長 1,560 bytes
コンパイル時間 684 ms
コンパイル使用メモリ 92,988 KB
実行使用メモリ 8,028 KB
最終ジャッジ日時 2023-08-27 07:42:37
合計ジャッジ時間 2,531 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 43 ms
5,824 KB
testcase_09 AC 78 ms
7,464 KB
testcase_10 AC 65 ms
6,840 KB
testcase_11 AC 49 ms
6,172 KB
testcase_12 AC 19 ms
4,588 KB
testcase_13 AC 1 ms
4,376 KB
testcase_14 AC 1 ms
4,376 KB
testcase_15 AC 1 ms
4,376 KB
testcase_16 AC 1 ms
4,380 KB
testcase_17 AC 2 ms
4,376 KB
testcase_18 AC 30 ms
4,380 KB
testcase_19 AC 22 ms
4,376 KB
testcase_20 AC 14 ms
4,380 KB
testcase_21 AC 33 ms
4,376 KB
testcase_22 AC 18 ms
4,380 KB
testcase_23 AC 2 ms
4,376 KB
testcase_24 AC 55 ms
8,028 KB
testcase_25 AC 15 ms
4,380 KB
testcase_26 AC 9 ms
4,376 KB
testcase_27 AC 1 ms
4,376 KB
evil01.txt AC 65 ms
8,044 KB
evil02.txt AC 65 ms
8,032 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

//include
//------------------------------------------
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>

using namespace std;

inline int toInt(string s) { int v; istringstream sin(s); sin >> v; return v; }
template<class T> inline string toString(T x) { ostringstream sout; sout << x; return sout.str(); }

template<class T> inline T sqr(T x) { return x*x; }

typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;

//repetition
//------------------------------------------
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)

#define ArraySizeOf(array)     (sizeof(array) / sizeof(array[0]))

#define ALL(a)  (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())

int main(){
	int n;
	int k;
	cin >> n;
	int ans=0;
	map<int,int> map;
	REP(i, n) {
		cin >> k, map[k]++;
	}
	for (auto m = map.begin(); m != map.end(); m++) {
		if (m->second == 1) ans++;
	}
	cout << ans << endl;

	return 0;
}
0