# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
872928 | vjudge1 | Best Place (NOI17_bestplace) | C++14 | 0 ms | 0 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 <iostream>
#include <algorithm>
using namespace std;
int main(){
int N = 0;
cin >> N;
int a[i];
int b[i];
for(int i = 0; i < N; i++){
cin >> a[i];
cin >> b[i];
}
sort(a, a+N);
sort(b, b+N);
cout << a[N/2] << " ";
cout << b[N/2];
}