# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1109325 | vjudge1 | Best Place (NOI17_bestplace) | C++17 | 31 ms | 3200 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(){
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int n,sum=0,sum1=0,say=0,say1=0;
cin>>n;
vector<int>ev(n);
vector<int>tedbir(n);
for(int i=0;i<n;++i){
cin>>ev[i];
say++;
cin>>tedbir[i];
say1++;
}
sort(ev.begin(),ev.end());
sort(tedbir.begin(),tedbir.end());
int mx,my;
mx=ev[n/2];
my=tedbir[n/2];
cout<<mx<<' '<<my;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |