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;
vector<int> x,y;
int n;
int a,b;
int main()
{
cin >> n;
for(int i=0;i<n;i++){
cin >> a >> b;
x.push_back(a);y.push_back(b);
}
sort(x.begin(),x.end());sort(y.begin(),y.end());
int med = n/2;
cout << x[med] << ' ' << y[med];
return 0;
}
# | 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... |