# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
969629 | RandomUser | Utrka (COCI14_utrka) | C++17 | 122 ms | 10352 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;
int32_t main() {
int n;
cin >> n;
map<string, int> mp;
string s;
for(int i=0; i<n; i++) {
cin >> s;
mp[s]++;
}
for(int i=0; i<n-1; i++) {
cin >> s;
mp[s]--;
}
for(auto &[str, cnt] : mp) {
if(cnt > 0) {
cout << str << '\n';
return 0;
}
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |