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 int long long
#define endl "\n"
void solve(){
int n;
cin>>n;
vector<int> pa(n);
vector<int> pb(n);
for(int i=0;i<n;i++)
cin >> pa[i] >> pb[i];
sort(pa.begin(),pa.end());
sort(pb.begin(),pb.end());
int middle = round((pa.size()-1)/2);
cout<< pa[middle]<< " "<<pb[middle]<< endl;
}
signed main(){
int t =1;
// cin>>t;
while(t--)solve();
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... |