OJ-Problems-Source/HDOJ/1173_autoAC.cpp
2016-08-13 10:51:15 +08:00

19 lines
357 B
C++

#include <stdio.h>
#include<iostream>
using namespace std;
#include<algorithm>
double x[1000002],y[1000002];
int main()
{
int n;
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("%.2lf %.2f\n",x[n/2],y[n/2]);
}
return 0;
}