Skip to content

Instantly share code, notes, and snippets.

@likecs likecs/geek03-2.cpp
Created Nov 20, 2017

Embed
What would you like to do?
Model Solution 2 of GEEK03
#include <bits/stdc++.h>
using namespace std;
int main() {
int t, n;
string s;
cin >> t;
while(t--) {
cin >> n;
map<string, int> mp;
for(int i = 0; i < n; ++i) {
cin >> s;
mp[s] += 1;
}
int ans = 0;
for(auto it : mp) {
if (it.second % 2 == 1) {
ans += 1;
}
}
cout << ans << "\n";
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.