1063

作者: 峡迩 | 来源:发表于2017-09-05 12:47 被阅读0次
// PATn.cpp : 定义控制台应用程序的入口点。
//

#include "stdafx.h"
#include<iostream>
#include<cmath>
#include<iomanip>


using namespace std;

int main()
{
    unsigned n;
    cin >> n;

    double max = 0.0;
    int a, b;

    for (unsigned i = 0; i < n; ++i)
    {
        cin >> a >> b;
        double tmp = sqrt(pow(a, 2) + pow(b, 2));
        if (tmp > max)
            max = tmp;
    }


    cout.setf(ios::fixed);
    cout <<setprecision(2)<< max;

    system("pause");
    return 0;
}

相关文章

  • 1063

    1063 计算谱半径(20 分)在数学中,矩阵的“谱半径”是指其特征值的模集合的上确界。换言之,对于给定的 n 个...

  • 1063

  • 1063

    8月23日,农历七月二十六,周二,多云 晚上有风,外面比家里还凉快些。累死的空调,今晚上终于可以休息啦! 处暑吃鸭...

  • 亲子(1063)

    2020.2.28 星期五 小雨转雪 (待续)

  • 日记1063

    2022年11月16日,星期三,晴天 今天带着低情绪上班,一上午感觉想要哭的感觉,有时候甚至想请假回家,但我没有随...

  • 1063 Set Similarity (25 分)(set以及

    1063 Set Similarity (25 分) Given two sets of integers, th...

  • SecureCRT / FX 8.0.0( build 1063

    SecureCRT / FX 8.0.0( build 1063 )for Windows 破解版 By Rick...

  • 香锅大乱炖

    今天是来简书平台的第1063天,这篇文章是日更的第1063篇。今日天气晴天,心情一般。 好久没动手做饭,中午刚好有...

  • BZOJ-1063: [Noi2008]道路设计(树DP)

    题目:http://www.lydsy.com/JudgeOnline/problem.php?id=1063 首...

  • 品牌之路1063

    已经有32天,没有记录,品牌之路!32天的时间,处于劳累,奋斗路上! 三年前,我开始经营护肤品,也就是现在的完颜古...

网友评论

      本文标题:1063

      本文链接:https://www.haomeiwen.com/subject/ddyujxtx.html