제출 #478004

#제출 시각아이디문제언어결과실행 시간메모리
478004sumit_kk10Best Place (NOI17_bestplace)C++17
100 / 100
39 ms3028 KiB
#include <bits/stdc++.h>
#define fast ios_base::sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL)
#define ll long long int
#define ld long double
using namespace std;
const int N = 1e6 + 5;
const int MOD = 1e9 + 7;

int main(){
	fast;
	int n;
	cin >> n;
	int x[n], y[n];
	for(int i = 0; i < n; ++i)
		cin >> x[i] >> y[i];
	sort(x, x + n);
	sort(y, y + n);
	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...