結果

問題 No.735 接線
ユーザー CroweaCrowea
提出日時 2019-02-12 14:23:12
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 351 bytes
コンパイル時間 2,231 ms
コンパイル使用メモリ 105,216 KB
実行使用メモリ 26,076 KB
最終ジャッジ日時 2023-10-11 10:54:02
合計ジャッジ時間 5,777 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
23,852 KB
testcase_01 AC 70 ms
23,976 KB
testcase_02 AC 72 ms
24,004 KB
testcase_03 AC 68 ms
23,820 KB
testcase_04 AC 70 ms
24,228 KB
testcase_05 AC 72 ms
26,076 KB
testcase_06 AC 72 ms
22,004 KB
testcase_07 AC 70 ms
24,008 KB
testcase_08 AC 71 ms
24,004 KB
testcase_09 AC 71 ms
25,904 KB
testcase_10 AC 71 ms
24,004 KB
testcase_11 AC 71 ms
24,108 KB
testcase_12 AC 72 ms
26,044 KB
testcase_13 AC 71 ms
22,056 KB
testcase_14 AC 71 ms
24,024 KB
testcase_15 AC 70 ms
23,992 KB
testcase_16 AC 71 ms
24,136 KB
testcase_17 AC 71 ms
25,908 KB
testcase_18 AC 70 ms
26,040 KB
testcase_19 AC 71 ms
24,076 KB
testcase_20 AC 71 ms
24,044 KB
testcase_21 AC 71 ms
24,036 KB
testcase_22 AC 71 ms
21,948 KB
testcase_23 AC 70 ms
24,160 KB
testcase_24 AC 71 ms
24,132 KB
testcase_25 AC 70 ms
23,868 KB
testcase_26 AC 72 ms
25,912 KB
testcase_27 AC 71 ms
24,196 KB
testcase_28 AC 70 ms
22,140 KB
testcase_29 AC 71 ms
24,092 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.Linq;

public class Program
{
    public static void Main(string[] args)
    {
        var line = Console.ReadLine().Split().Select(x => double.Parse(x)).ToArray();
        var r = line[0];
        var d = line[1];
        var al = Math.Sqrt(Math.Pow(d, 2) - Math.Pow(r, 2));
        Console.WriteLine("{0:f12}",al);
    }
}
0