제출 #892909

#제출 시각아이디문제언어결과실행 시간메모리
892909votranngocvyBest Place (NOI17_bestplace)C++14
100 / 100
29 ms3936 KiB
#include <bits/stdc++.h> using namespace std; #define int long long #define pii pair<int,int> #define fi first #define se second #define mp make_pair const int N = 1e5 + 5; int n,x[N],y[N]; signed main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin >> n; for (int i = 1; i <= n; i++) cin >> x[i] >> y[i]; sort(x + 1,x + n + 1); sort(y + 1,y + n + 1); int mid = (n + 1) / 2; cout << x[mid] << " " << y[mid] << "\n"; }
#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...