제출 #499704

#제출 시각아이디문제언어결과실행 시간메모리
499704aadi_goyalBest Place (NOI17_bestplace)C++14
100 / 100
44 ms3028 KiB
#include<bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n; cin >> n; vector<int> x(n); vector<int> y(n); for(int i = 0; i < n; i++) { cin >> x[i] >> y[i]; } sort(x.begin(), x.end()); sort(y.begin(), y.end()); int mid = (n - 1) / 2; cout << x[mid] << " " << y[mid] << endl; 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...