結果

問題 No.182 新規性の虜
ユーザー 西尾西尾
提出日時 2018-03-09 11:39:00
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 59 ms / 5,000 ms
コード長 326 bytes
コンパイル時間 1,637 ms
コンパイル使用メモリ 173,476 KB
実行使用メモリ 8,064 KB
最終ジャッジ日時 2024-10-07 21:47:53
合計ジャッジ時間 3,198 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

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

//int Yuki0182()
int main()
{
int i;
int X;
int A;
int N;
int iCnt;
map<int, int> m;

	cin >> N;
     	
	iCnt = 0;
	for( i = 0; i < N; i++ )
	{
		cin >> A;
		switch( ++m[ A ] )
		{
		case 1:
			iCnt++;

			break;
		case 2:
			iCnt--;
		}
	}

	cout << iCnt << endl;

	return 0;
}
0