結果

問題 No.182 新規性の虜
ユーザー Naoyk1212Naoyk1212
提出日時 2016-11-05 20:46:57
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 266 bytes
コンパイル時間 1,782 ms
コンパイル使用メモリ 164,596 KB
実行使用メモリ 7,936 KB
最終ジャッジ日時 2024-05-03 22:18:00
合計ジャッジ時間 4,165 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,812 KB
testcase_01 AC 1 ms
6,940 KB
testcase_02 AC 1 ms
6,940 KB
testcase_03 AC 1 ms
6,940 KB
testcase_04 AC 1 ms
6,940 KB
testcase_05 AC 2 ms
6,944 KB
testcase_06 AC 1 ms
6,940 KB
testcase_07 AC 1 ms
6,940 KB
testcase_08 AC 43 ms
6,940 KB
testcase_09 AC 74 ms
7,296 KB
testcase_10 AC 60 ms
6,940 KB
testcase_11 AC 48 ms
6,940 KB
testcase_12 AC 19 ms
6,940 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 2 ms
6,940 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 2 ms
6,940 KB
testcase_24 AC 55 ms
7,936 KB
testcase_25 AC 16 ms
6,948 KB
testcase_26 AC 8 ms
6,944 KB
testcase_27 AC 2 ms
6,944 KB
evil01.txt AC 67 ms
8,192 KB
evil02.txt AC 67 ms
8,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

int main(){
	int n;
	cin >> n;
	map<int, int> mp;
	for(int i = 0; i < n; i++){
		int a;
		cin >> a;
		mp[a]++;
	}
	
	int count = 0;
	for(auto x: mp){
		if(x.second % 2 != 0){
			count++;
		}
	}
	cout << count << endl;
}
0