Pagini recente » Diferente pentru problema/sets intre reviziile 2 si 1 | Cod sursa (job #897746) | Cod sursa (job #893367) | Cod sursa (job #744672) | Cod sursa (job #22771)
Cod sursa(job #22771)
#include <stdio.h>
int main() {
int i, N;
long double cx, cy, x, y;
freopen( "adapost2.in", "r", stdin );
freopen( "adapost2.out", "w", stdout );
scanf( "%d", &N );
x = y = cx = cy = 0;
for( i=1; i<=N; i++ ) {
scanf( "%llf%llf", &x, &y );
cx += x; cy += y;
}
cx /= N;
cy /= N;
printf( "%.4llf %.4llf\n", cx, cy );
return 0;
}