제출 #738178

#제출 시각아이디문제언어결과실행 시간메모리
738178Ronin13Best Place (NOI17_bestplace)C++14
100 / 100
38 ms1432 KiB
#include <bits/stdc++.h> #define ll long long #define f first #define s second #define pii pair<int,int> #define pll pair<ll,ll> #define pb push_back #define epb emplace_back #define ull unsigned ll using namespace std; const int nmax = 200001; int main(){ ios_base::sync_with_stdio(false); cin.tie(0); int n; cin >> n; vector <int> x, y; for(int i = 1; i <= n; i++){ int X, Y; cin >> X >> Y; x.pb(X); y.pb(Y); } 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...