# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
469225 | ala2 | Utrka (COCI14_utrka) | C++14 | 311 ms | 47624 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>
#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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |