# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
742242 | thang | Utrka (COCI14_utrka) | C++14 | 192 ms | 17360 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 n;
string x[100005],y[100005];
map<string ,int> dem;
int main()
{
cin>>n;
for(int i=1;i<=n;i++) cin>>x[i],dem[x[i]]++;
for(int i=1;i<=n-1;i++) cin>>y[i],dem[y[i]]++;
for(int i=1;i<=n;i++)
if(dem[x[i]]%2!=0) {cout<<x[i];break;}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |