# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
87798 | asifthegreat | Utrka (COCI14_utrka) | C++14 | 525 ms | 25744 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;
map<string,int>mp;
set<string>st;
int main()
{
int n;
scanf("%d",&n);
string s;
for(int i = 1; i <= n;i++){
cin >> s;
mp[s]++;
st.insert(s);
}
for(int i = 1; i < n;i++){
cin >> s;
mp[s]--;
}
for(auto x:st){
if(mp[x]){
printf("%s\n",x.c_str());
return 0;
}
}
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |