1063 计算谱半径
作者:互联网
水的不能再水。
#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; }
标签:%.,int,MAX,1063,d%,计算,printf,半径,include 来源: https://www.cnblogs.com/keep23456/p/12354157.html