水题,没有难点

#include<stdio.h>
#include<algorithm>
#include<math.h>
using namespace std;

int main(){
    int N;scanf("%d",&N);
    int shi,xu;double jieguo=0;
    for(int i=0;i<N;i++){
        scanf("%d%d",&shi,&xu);
        int temp=shi*shi+xu*xu;
        if(temp>jieguo) jieguo=temp;
    }
    printf("%.2f",sqrt(jieguo));

    return  0;
}

相关文章:

  • 2021-05-20
  • 2022-02-19
  • 2021-12-22
  • 2021-10-02
  • 2021-11-25
  • 2021-11-21
  • 2021-05-31
  • 2022-12-23
猜你喜欢
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
  • 2021-07-10
相关资源
相似解决方案