-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest02.cpp
More file actions
53 lines (48 loc) · 1.3 KB
/
Copy pathtest02.cpp
File metadata and controls
53 lines (48 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <queue>
#include <set>
#include <map>
#include <math.h>
#define mp make_pair
#define F first
#define S second
#define pb push_back
#define FOR(i,j,n) for(int i=j;i<n;i++)
#define F0R(i,j,n) for(int i=j;i<=n;i++)
#define RFOR(i,j,n) for(int i=n-1;i>=j;i--)
#define RF0R(i,j,n) for(int i=n;i>=j;i--)
#define FOREACH(x,v) for(auto x:v)
#define ITFOR(it,v) for(v::iterator it =v.begin();it!=v.end();++it)
#define __in_arr__(a,j,n) FOR(i,j,n)cin >> a[i];
#define __out_arr__(a,j,n) FOR(i,j,n)cout << a[i];
#define LOG cout << "[ !" << __LINE__ << "L ] " << endl;
#define PLOG(x) cout << "[ !" << __LINE__ << "L ] " \<<x<<endl;
using namespace std;
typedef long long ll;
typedef pair<ll,ll> pll;
typedef pair<int,int> pii;
typedef vector<int> vi;
typedef vector<pii> vii;
typedef vector<ll> vl;
map<int,bool> m;
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);cout.tie(NULL);
int N;
cin >> N;
FOR(i,0,N){
int x;cin >> x;
m[x] = !m[x];
}
int ans = 0;
for(auto x : m)
if(x.S)
ans ++;
cout << ans << endl;
return 0;
}