水的不能再水。
#include<iostream> #include<cmath> using namespace std; int main() { int n,a,b,MAX = -1; cin>>n; while(n--) { scanf("%d%d",&a,&b); if(MAX < a*a+b*b) MAX = a*a+b*b; } printf("%.2f",(double)sqrt(MAX)); return 0; }
原文:https://www.cnblogs.com/keep23456/p/12354157.html