https://pintia.cn/problem-sets/994805260223102976/problems/994805267860930560
简单题。
#include<iostream>
#include<math.h>
using namespace std;
int main() {
int n, shi, xu;
float mo, max=0;
cin >> n;
for(int i=0; i<n; i++){
cin >> shi >> xu;
mo = sqrt(shi*shi + xu*xu);
if(mo > max){
max = mo;
}
}
printf("%.2f\n", max);
return 0;
}