# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
866073 | mamion | Utrka (COCI14_utrka) | C++11 | 169 ms | 42836 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;
const int N = 1e6;
int n;
map<string, int> m;
string s[N];
int main() {
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> s[i];
m[s[i]]++;
}
for (int i = 1; i < n; i++) {
string ss; cin >> ss;
m[ss]--;
}
for (int i = 1; i <= n; i++) {
if (m[s[i]] == 0) continue;
cout << s[i];
return 0;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |