Submission #916147

#TimeUsernameProblemLanguageResultExecution timeMemory
916147406Best Place (NOI17_bestplace)C++17
100 / 100
32 ms4692 KiB
#include <bits/stdc++.h> #define int int64_t #define FOR(i, a, b) for (int i = (a); i < (b); ++i) using namespace std; using ar = array<int, 2>; const int64_t INF = 1ll << 60; const int N = 2e5 + 5; int X[N], Y[N], n; signed main() { ios::sync_with_stdio(false); cin.tie(nullptr); cin >> n; FOR(i, 0, n) cin >> X[i] >> Y[i]; sort(X, X + n); sort(Y, Y + n); cout << X[n / 2] << ' ' << Y[n / 2] << '\n'; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...