# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1083109 | toast12 | Utrka (COCI14_utrka) | C++14 | 147 ms | 18260 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() {
int n;
cin >> n;
map<string, int> freq;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
freq[s]++;
}
map<string, int> freq2;
for (int i = 0; i < n-1; i++) {
string s;
cin >> s;
freq2[s]++;
}
for (auto x : freq) {
if (x.second > freq2[x.first]) {
cout << x.first << '\n';
break;
}
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |