Advertisement
LEGEND2004

oyun

Oct 1st, 2023
696
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. //#define int long long
  5. const int INF = 1e18;
  6. const int N = 1e3 + 5;
  7. const int mod = 1e9 + 7;
  8.  
  9.  
  10. signed main()
  11. {
  12.     int n , k;
  13.     cin >> n;
  14.     map<int , int> cnt;
  15.     while(n--){
  16.         cin >> k;
  17.         cnt[k]++;
  18.     }
  19.     int ans = 0;
  20.     for(auto i : cnt){
  21.         ans += (i.second % 2);
  22.     }
  23.     cout << ans << endl;
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement