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;
using pii = pair<int,int> ;
const int N = 1e5+5;
const int MOD = 1e9+7 ;
int n , ans;
vector<int> X , Y ;
int main(){
ios_base::sync_with_stdio(0); cin.tie(0);
cin >> n ;
for(int i=1;i<=n;i++){
int x , y ; cin >> x >> y ;
X.push_back(x) , Y.push_back(y) ;
}
sort(X.begin() , X.end()) ;
sort(Y.begin() , Y.end()) ;
cout << X[n / 2] << " " << Y[n / 2] ;
}
# | 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... |