# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
577152 | MilosMilutinovic | Utrka (COCI14_utrka) | C++14 | 141 ms | 10320 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 <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int n;
cin >> n;
map<string, int> cnt;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
cnt[s] += 1;
}
for (int i = 0; i < n - 1; i++) {
string s;
cin >> s;
cnt[s] += 1;
}
for (auto &p : cnt) {
if (p.second & 1) {
cout << p.first << '\n';
}
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |