Submission #1022437

#TimeUsernameProblemLanguageResultExecution timeMemory
1022437AliHasanliUtrka (COCI14_utrka)C++17
80 / 80
112 ms11280 KiB
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; string a[2*n-1]; for(int i=0;i<2*n-1;i++) cin>>a[i]; sort(a,a+n*2-1); for(int i=0;i<2*n-1;i+=2) if(a[i]!=a[i+1])cout<<a[i],exit(0); cout<<a[2*n-2]; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...