제출 #1106072

#제출 시각아이디문제언어결과실행 시간메모리
1106072Roumak77Best Place (NOI17_bestplace)C++17
100 / 100
27 ms4092 KiB
#pragma GCC optimize ("O3") #pragma GCC optimize ("unroll-loops") #pragma GCC optimize("-Ofast") #include <bits/stdc++.h> #include <algorithm> #include <iostream> #include <vector> #include <limits> #include <cmath> #include <stack> #include <queue> #include <map> #include <math.h> using namespace std; using ll = long long; void solve(){ ll n; cin >> n; vector<ll> x(n, 0); vector<ll> y(n, 0); for(ll i = 0; i < n; i++){ cin >> x[i]; cin >> y[i]; } sort(x.begin(), x.end()); sort(y.begin(), y.end()); cout << x[(n)/2] << " " << y[(n)/2] << endl; } bool single = true; int main(){ ios_base::sync_with_stdio(false); cout.tie(0); cin.tie(0); ll t = 1; if(!single) cin >> t; while(t--){ solve(); } }
#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...