# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
85886 | memetkagan44 | Utrka (COCI14_utrka) | C++11 | 324 ms | 22340 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;
string ar[100005],str;
int n;
map<string,int> mp;
int main(){
cin >> n;
for(int i=0;i<n;i++){
cin >> str;
mp[str]++;
ar[i]=str;
}
for(int i=1;i<n;i++){
cin >> str;
mp[str]--;
}
for(int i=0;i<n;i++)
if(mp[ar[i]]!=0){
cout << ar[i] << endl;
break;
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |