# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
713556 | ALTAKEXE | Utrka (COCI14_utrka) | C++14 | 1097 ms | 5816 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(){
//freopen("input.txt","r",stdin);
long long int n;
cin>>n;
n=n+(n-1);
vector<string> v;
vector<int> k;
while(n--){
string a;
cin>>a;
v.push_back(a);
}
long long int t=1;
for(int i=0;i<v.size();i++){
t=1;
while(t<v.size()){
if(v[i]==v[i+t]){
v[i]='0';
v[i+t]='0';
}
t++;
}
}
for(int i=0;i<v.size();i++){
if(v[i]!="0"){
cout<<v[i];
return 0;
}
}
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |