Submission #742242

#TimeUsernameProblemLanguageResultExecution timeMemory
742242thangUtrka (COCI14_utrka)C++14
80 / 80
192 ms17360 KiB
#include<bits/stdc++.h> using namespace std; int n; string x[100005],y[100005]; map<string ,int> dem; int main() { cin>>n; for(int i=1;i<=n;i++) cin>>x[i],dem[x[i]]++; for(int i=1;i<=n-1;i++) cin>>y[i],dem[y[i]]++; for(int i=1;i<=n;i++) if(dem[x[i]]%2!=0) {cout<<x[i];break;} }
#Verdict Execution timeMemoryGrader output
Fetching results...