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 ll long long int
// Added
#define True true
#define False false
#define endl "\n"
void solve() {
ll n;
cin >> n;
vector<ll> x(n);
vector<ll> y(n);
for (ll i = 0; i < n; ++i) cin >> x[i] >> y[i];
std::sort(x.begin(), x.end());
std::sort(y.begin(), y.end());
cout << x[ceil(n/2)] << " " << y[ceil(n/2)] << endl;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
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... |