Submission #218134

#TimeUsernameProblemLanguageResultExecution timeMemory
218134quocnguyen1012Best Place (NOI17_bestplace)C++14
100 / 100
51 ms3088 KiB
#include <bits/stdc++.h> #define fi first #define se second #define mp make_pair #define pb push_back #define eb emplace_back using namespace std; typedef long long ll; typedef pair<int, int> ii; const int bit = 1 << 17; signed main(void) { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); #ifdef LOCAL freopen("A.INP", "r", stdin); freopen("A.OUT", "w", stdout); #endif // LOCAL 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]; }
#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...