查看原题目请点我
C/C++代码实现

#include<cstdio>
#include<cmath>
int main(){
    int N;
    scanf("%d",&N);
    double max=-1005;
    int real,img;
    for(int i=0;i<N;i++){
        scanf("%d%d",&real,&img);
        double tmp=sqrt(real*real+img*img);
        if(tmp>max) max=tmp;
    }
    printf("%.2f\n",max);
    return 0;
}