제출 #571100

#제출 시각아이디문제언어결과실행 시간메모리
571100CookieBest Place (NOI17_bestplace)C++14
100 / 100
48 ms3048 KiB
#include <bits/stdc++.h> using namespace std; #define LIFESUCKS ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0) #define ll long long #define ld long double #define ar array #include<cstdio> #define vt vector #include<fstream> ifstream fin("measurement.in"); ofstream fout("measurement.out"); #include<fstream> #define pb push_back #define all(c) (c).begin(), (c).end() //#define length(x) (int)(x).size() #define fi first #define se second #define vt vector using namespace std; int main() { LIFESUCKS; int n; cin >> n; int x[n]; int y[n]; for(int i = 0; i < n; i++)cin >> x[i] >> y[i]; sort(x, x + n); sort(y, y + n); if(n % 2 == 0){ cout << x[n / 2 - 1] << ' ' << y[n / 2 - 1]; }else{ cout << x[n / 2] << " " << y[n / 2]; } 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...