Submission #469225

#TimeUsernameProblemLanguageResultExecution timeMemory
469225ala2Utrka (COCI14_utrka)C++14
80 / 80
311 ms47624 KiB
#include <bits/stdc++.h> #define int long long using namespace std; map<string,int>m; string s[1001000]; vector<string>v; signed main() { int n; cin>>n; for(int i=0; i<2*n-1; i++) { cin>>s[i]; m[s[i]]++; if(m[s[i]]==1) v.push_back(s[i]); } for(int i=0;i<2*n;i++) { if(m[s[i]]%2==1) { cout<<s[i]<<endl; break; } } }
#Verdict Execution timeMemoryGrader output
Fetching results...