#include <cstdio>
#include<cmath>
#include <iostream>
using namespace std;
int main(){
double max=0;
double a,b;
int n;
scanf("%d",&n);
for (int i = 0; i <n ; ++i) {
scanf("\n");
cin>>a>>b;
if((a*a+b*b)>max){
max = (a*a+b*b);
}
}
printf("%.2f",sqrt(max));
return 0;
}
乙级1063
最新推荐文章于 2020-04-28 13:24:39 发布