# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
686662 | mdub | Utrka (COCI14_utrka) | C++14 | 157 ms | 10284 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 () {
map<string, int> contestants;
int n; cin >> n;
for (int i = 0; i < n; i++) {
string s; cin >> s;
contestants[s]++;
}
for (int i = 0; i < n - 1; i++) {
string s; cin >> s;
contestants[s]--;
}
for (pair<string, int> elem: contestants) {
if (elem.second > 0) cout << elem.first << '\n';
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |