結果

問題 No.419 直角三角形
ユーザー claw88
提出日時 2016-09-09 22:28:26
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 524 bytes
コンパイル時間 2,705 ms
コンパイル使用メモリ 104,960 KB
実行使用メモリ 19,584 KB
最終ジャッジ日時 2024-11-16 10:20:18
合計ジャッジ時間 2,527 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17 WA * 3
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace yuki_419
{
    class Program
    {
        static void Main(string[] args)
        {
            var t = scan;
            var c = t.Max();
            var b = t.Min();

            double a = Math.Sqrt(c * c - b * b);

            Console.WriteLine(a.ToString("0.0000000"));
        }

        static int[] scan { get { return Array.ConvertAll(Console.ReadLine().Split(), int.Parse); } }
    }
}
0