| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1339544 | Minbaev | Best Place (NOI17_bestplace) | C++20 | 27 ms | 1092 KiB |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll inf = 3e18;
void solve() {
int n;
cin >> n;
vector<int> x(n), y(n);
for(int i = 0;i<n;i++){
cin >> x[i] >> y[i];
}
sort(x.begin(), x.end());
sort(y.begin(), y.end());
cout << x[n/2] << " " << y[n/2] << "\n";
}
/*
9
1 16
3 12
5 6
7 10
9 8
11 4
13 14
15 2
17 18
*/
signed main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr); cout.tie(nullptr);
int tt = 1;
while (tt--) solve();
}
| # | 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... | ||||
