# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
461330 | JasperL | Utrka (COCI14_utrka) | C++14 | 283 ms | 10368 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <iostream>
#include <vector>
#include <map>
using namespace std;
#define maxn 100005
int n;
map<string,int> f;
int main() {
cin >> n;
for (int i = 0; i < 2*n-1; i++) {
string s; cin >> s;
if (!f.count(s)) f[s] = 1;
else f[s]++;
}
for (auto z : f) {
if (z.second%2 == 1) cout << z.first << endl;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |