题目:https://pintia.cn/problem-sets/994805260223102976/problems/994805267860930560
#include<cstdio>#include<algorithm>#include<cmath>int main(){int n;int a, b;double temp, ans = 0;scanf("%d", &n);for(int i = 0; i < n; i++){scanf("%d %d", &a, &b);temp = sqrt(a * a * 1.0 + b * b);ans = std::max(ans, temp);}printf("%.2f", ans);}
