#include<iostream>
#include<math.h>
#include<iomanip>
using namespace std;
int main(){
int N;
double a,b;
double max=0;
cin>>N;
while(N--){
cin>>a>>b;
double temp=sqrt(pow(a,2)+pow(b,2));
if(temp>max){
max=temp;
}
}
//max+=0.005;
cout<<fixed<<setprecision(2)<<max;
}
1063. 计算谱半径(20) PAT乙级
最新推荐文章于 2022-10-30 16:26:28 发布
