Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- //#define int long long
- const int INF = 1e18;
- const int N = 1e3 + 5;
- const int mod = 1e9 + 7;
- signed main()
- {
- int n , k;
- cin >> n;
- map<int , int> cnt;
- while(n--){
- cin >> k;
- cnt[k]++;
- }
- int ans = 0;
- for(auto i : cnt){
- ans += (i.second % 2);
- }
- cout << ans << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement