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;
typedef int ll;
typedef vector<ll> vl;
typedef vector<vl> vvl;
#define all(x) x.begin(), x.end()
const char nd = '\n';
signed main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
//
ll n;
cin >> n;
vl a(n), b(n);
for (ll i = 0; i < n; i++) {
cin >> a[i] >> b[i];
}
sort(all(a));
sort(all(b));
cout << a[n / 2] << " " << b[n / 2] << nd;
}
# | 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... |