#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <iostream>
using namespace std;
const int maxn = 1e6 + 5;
double x[maxn], y[maxn];
int main()
{
int t;
while(cin>>t && t)
{
for(int i = 1; i <= t; i++)
cin>>x[i]>>y[i];
sort(x + 1, x + t + 1);
sort(y + 1, y + t + 1);
printf("%.2lf %.2lf\n", x[t / 2 + 1], y[t / 2 +1]); //寻找中位数即可
}
return 0;
}
HDU 1173(技巧题)
最新推荐文章于 2018-11-09 13:25:00 发布