제출 #577475

#제출 시각아이디문제언어결과실행 시간메모리
577475hailBest Place (NOI17_bestplace)C++17
100 / 100
36 ms3052 KiB
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int N; cin>>N; vector<int> vec_x; vec_x.reserve(N); vector<int> vec_y; vec_y.reserve(N); int x, y; for(int i{0}; i<N; i++) { cin>>x>>y; vec_x.push_back(x); vec_y.push_back(y); } sort(vec_x.begin(), vec_x.end()); sort(vec_y.begin(), vec_y.end()); int a = vec_x[(N/2)]; int b = vec_y[(N/2)]; cout<<a<<" "<<b; 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...