# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
713546 | ALTAKEXE | Utrka (COCI14_utrka) | C++14 | 1 ms | 308 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);
int n;
cin>>n;
n=n+(n-1);
vector<string> v;
vector<int> k;
while(n--){
string a;
cin>>a;
v.push_back(a);
}
sort(v.begin(),v.end());
for(int i=0;i<v.size();i++){
if(v[i]==v[i+1]) k.push_back(i),k.push_back(i+1);
}
for(int j=0;j<v.size();j++){
for(int i=0;i<k.size();i++){
if(k[j]!=j){
cout<<v[j];
return 0;
}
}
}
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |