結果

問題 No.1487 ぺんぎんさんかっけー
ユーザー bluemeganebluemegane
提出日時 2021-04-24 07:11:56
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 65 ms / 1,000 ms
コード長 405 bytes
コンパイル時間 1,168 ms
コンパイル使用メモリ 61,204 KB
実行使用メモリ 24,768 KB
最終ジャッジ日時 2023-09-17 13:29:03
合計ジャッジ時間 4,434 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
24,712 KB
testcase_01 AC 64 ms
24,728 KB
testcase_02 AC 63 ms
22,624 KB
testcase_03 AC 64 ms
22,920 KB
testcase_04 AC 64 ms
22,624 KB
testcase_05 AC 64 ms
22,744 KB
testcase_06 AC 64 ms
22,828 KB
testcase_07 AC 64 ms
20,644 KB
testcase_08 AC 64 ms
22,672 KB
testcase_09 AC 63 ms
20,596 KB
testcase_10 AC 64 ms
22,772 KB
testcase_11 AC 63 ms
22,584 KB
testcase_12 AC 63 ms
22,608 KB
testcase_13 AC 64 ms
24,712 KB
testcase_14 AC 63 ms
20,604 KB
testcase_15 AC 64 ms
24,720 KB
testcase_16 AC 63 ms
22,640 KB
testcase_17 AC 64 ms
20,548 KB
testcase_18 AC 64 ms
24,668 KB
testcase_19 AC 63 ms
24,768 KB
testcase_20 AC 64 ms
22,704 KB
testcase_21 AC 64 ms
24,724 KB
testcase_22 AC 64 ms
22,620 KB
testcase_23 AC 63 ms
20,588 KB
testcase_24 AC 64 ms
24,640 KB
testcase_25 AC 64 ms
22,668 KB
testcase_26 AC 64 ms
24,668 KB
testcase_27 AC 64 ms
24,680 KB
testcase_28 AC 63 ms
22,668 KB
testcase_29 AC 63 ms
22,764 KB
testcase_30 AC 64 ms
22,616 KB
testcase_31 AC 65 ms
24,744 KB
testcase_32 AC 64 ms
22,704 KB
testcase_33 AC 64 ms
24,748 KB
testcase_34 AC 64 ms
24,728 KB
testcase_35 AC 63 ms
22,672 KB
testcase_36 AC 63 ms
22,648 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using static System.Math;
using System;

public class Hello
{
    public static double a, b, c;
    static void Main()
    {
        string[] line = Console.ReadLine().Trim().Split(' ');
        a = double.Parse(line[0]);
        b = double.Parse(line[1]);
        c = double.Parse(line[2]);
        var s = (a + b + c) / 2d;
        Console.WriteLine(Sqrt(s * (s - a) * (s - b) * (s - c)) / 4d);
    }
}
0