# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
470569 | watoKE | Utrka (COCI14_utrka) | C++17 | 243 ms | 41784 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 fast ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define forcin for(int i=1;i<=n;i++) scanf("%d",&dizi[i]);
#define forcout for(int i=0;i<n;i++) printf("%d ",dizi[i]);
#define ll long long
using namespace std;
int n,t,cevap;
string s[1000005];
map <string,int> mp;
int main()
{
cin>>n;
for(int i=0;i<2*n-1;i++)
{
cin>>s[i];
mp[s[i]]++;
}
for(int i=0;i<2*n;i++)
{
if (mp[s[i]]%2==1)
{
cout<<s[i]<<endl;
break;
}
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |