https://pintia.cn/problem-sets/994805260223102976/problems/994805267860930560
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int N, tmp1, tmp2;
double max = 0.0;
cin >> N;
for(int i = 0; i < N; i++){
cin >> tmp1 >> tmp2;
max = (max > sqrt(tmp1*tmp1 + tmp2*tmp2)) ? max : (sqrt(tmp1*tmp1 + tmp2*tmp2));
}
printf("%.2f", max);
return 0;
}