Files
contests/misc/chuyen-de-xau/b3.cpp

29 lines
463 B
C++

#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
freopen("B3.INP", "r", stdin);
map<string, char> hash;
int q;
cin >> q;
for (int i = 0; i < q; i++) {
string a;
cin >> a;
// cout << a;
if (hash.find(a) == hash.end()) {
hash[a] = 1;
} else {
hash[a] = 0;
}
}
for (const auto i : hash) {
if (i.second == 1)
cout << i.first << '\n';
}
}