Submission #482700

#TimeUsernameProblemLanguageResultExecution timeMemory
482700Sneha_codesBest Place (NOI17_bestplace)C++14
100 / 100
40 ms3032 KiB
#include <bits/stdc++.h> #define pb push_back #define eb emplace_back #define mp make_pair #define fi first #define se second #define all(x) (x).begin(), (x).end() #define sz(x) (int)(x).size() #define rep(i, a, b) for (int i = (a); i < (b); ++i) #define debug(x) cerr << #x << " = " << x << endl using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef vector<int> vi; void solve() { int n; cin >> n; vi vx(n), vy(n); rep (i, 0, n) { cin >> vx[i] >> vy[i]; } sort(all(vx)); sort(all(vy)); cout << vx[n / 2] << ' ' << vy[n / 2] << endl; } int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int tt = 1; for (int i = 1; i <= tt; ++i) { solve(); } 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...