Precreation contest files
This commit is contained in:
28
misc/chuyen-de-xau/b3.cpp
Normal file
28
misc/chuyen-de-xau/b3.cpp
Normal file
@@ -0,0 +1,28 @@
|
||||
#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';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user