mirror of
https://github.com/xlucn/PAT.git
synced 2026-02-07 11:32:18 +08:00
18 lines
251 B
C
18 lines
251 B
C
#include <stdio.h>
|
|
#include <math.h>
|
|
|
|
int main()
|
|
{
|
|
int N, R, I, norm = 0;
|
|
|
|
scanf("%d", &N);
|
|
for (int i = 0; i < N; i++) {
|
|
scanf("%d %d", &R, &I);
|
|
if (R * R + I * I > norm)
|
|
norm = R * R + I * I;
|
|
}
|
|
printf("%.2lf", sqrt(norm));
|
|
|
|
return 0;
|
|
}
|