题目链接 实现 #include <iostream> #include <cmath> using namespace std; int main() { int N, a, b,temp=0; scanf("%d", &N); while (N--) { scanf("%d %d", &a, &b); if (pow(a, 2) + pow(b, 2) > temp) temp = pow(a, 2) + pow(b, 2); } printf("%.2f", sqrt(temp)); return 0; }