求x和y的中位数即可
AC代码如下:
#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
double x[1000000], y[1000000];
int N;
int main(){
while( scanf( "%d", &N ) && N ){
for( int i = 0 ; i < N; i++ ){
scanf( "%lf%lf", &x[i], &y[i] );
}
sort( x, x + N );
sort( y, y + N );
printf( "%lf %lf\n", x[N/2], y[N/2] );
}
return 0;
}