Submission #85886

#TimeUsernameProblemLanguageResultExecution timeMemory
85886memetkagan44Utrka (COCI14_utrka)C++11
80 / 80
324 ms22340 KiB
#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 timeMemoryGrader output
Fetching results...