Submission #621393

#TimeUsernameProblemLanguageResultExecution timeMemory
621393kkkkkkkkUtrka (COCI14_utrka)C++17
80 / 80
138 ms11084 KiB
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<string> v(2*n-1); for (int i=0;i<n+n-1;i++) cin >> v[i]; sort(v.begin(),v.end()); string rez=v[2*n-2]; for (int i=0;i<2*n-2;i+=2) { if (v[i]!=v[i+1]) { rez=v[i]; break; } } cout << rez << endl; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...