mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
19 lines
357 B
C++
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;
|
|
}
|