# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
621393 | kkkkkkkk | Utrka (COCI14_utrka) | C++17 | 138 ms | 11084 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |