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;
#define inti long long int
int main(){
/*#ifndef ONLINE_JUDGE
freopen("triangles.in","r",stdin);
freopen("triangles.out","w",stdout);
#endif*/
int N,A,B;
cin>>N;
vector<int> X,Y;
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());
cout<<X[N/2]<<" "<<Y[N/2];
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... |