【题意】


在这里写题意

【题解】


在这里写题解

【错的次数】


0

【反思】


在这了写反思

【代码】

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

const int N = 1e5;

map <int, int> dic;
int tot = 0;

int main() {
    //freopen("F:\\rush.txt", "r", stdin);
    ios::sync_with_stdio(0);
    int n;
    cin >> n;
    for (int i = 1; i <= n; i++) {
        int x;
        cin >> x;
        dic[x] = 1 - dic[x];
        if (dic[x] & 1)
            tot++;
        else
            tot--;
    }
    cout << tot << endl;
    return 0;
}


相关文章:

  • 2022-03-06
  • 2020-02-23
  • 2021-11-08
  • 2021-09-02
  • 2021-08-28
  • 2021-10-14
  • 2021-12-16
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
相关资源
相似解决方案