結果

問題 No.419 直角三角形
ユーザー GoryudyumaGoryudyuma
提出日時 2017-05-12 21:53:18
言語 Java19
(openjdk 21)
結果
WA  
実行時間 -
コード長 338 bytes
コンパイル時間 2,082 ms
コンパイル使用メモリ 71,376 KB
実行使用メモリ 56,580 KB
最終ジャッジ日時 2023-10-13 13:59:32
合計ジャッジ時間 6,967 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 141 ms
55,508 KB
testcase_01 AC 142 ms
55,948 KB
testcase_02 AC 138 ms
55,948 KB
testcase_03 AC 143 ms
55,844 KB
testcase_04 AC 138 ms
55,940 KB
testcase_05 AC 138 ms
56,220 KB
testcase_06 AC 137 ms
56,068 KB
testcase_07 AC 140 ms
55,980 KB
testcase_08 WA -
testcase_09 AC 139 ms
56,276 KB
testcase_10 AC 140 ms
55,980 KB
testcase_11 AC 140 ms
56,024 KB
testcase_12 WA -
testcase_13 AC 142 ms
56,032 KB
testcase_14 AC 140 ms
55,808 KB
testcase_15 AC 141 ms
55,992 KB
testcase_16 AC 140 ms
55,548 KB
testcase_17 AC 141 ms
56,144 KB
testcase_18 AC 144 ms
55,524 KB
testcase_19 AC 144 ms
55,844 KB
testcase_20 AC 140 ms
56,216 KB
testcase_21 AC 138 ms
55,756 KB
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main{
        public static void main(String[] args){
                try(Scanner sc = new Scanner(System.in)){
                        double a = sc.nextDouble(), b = sc.nextDouble();
                        System.out.printf("%.10f\n", Math.sqrt(Math.abs(a * a - b * b)));
                }
        }
}
0