# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
201309 | ArKCa | Utrka (COCI14_utrka) | C++17 | 338 ms | 10488 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 f1 first
#define s2 second
#define pb push_back
#define pob pop_back
#define int ll
#define ll long long
#define PII pair<int,int>
#define N 11
using namespace std;
int n,a,last,b;
int dizi[N];
map<string,int>m;
map<string,int>::iterator it;
string s;
int32_t main(){
// freopen("a.gir","r",stdin);
// freopen("a.cik","w",stdout);
scanf("%lld",&n);
for(int i=1;i<=n;i++){
cin>>s;
m[s]++;
}
for(int i=1;i<n;i++){
cin>>s;
m[s]++;
}
for(it=m.begin();it!=m.end();it++){
if(it->s2%2==1){
cout<<it->f1<<endl;
return 0;
}
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |