結果

問題 No.419 直角三角形
ユーザー aaaaasatoriaaaaasatori
提出日時 2018-02-15 17:56:04
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 288 bytes
コンパイル時間 4,748 ms
コンパイル使用メモリ 72,492 KB
実行使用メモリ 56,728 KB
最終ジャッジ日時 2023-08-27 02:20:28
合計ジャッジ時間 9,157 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
56,728 KB
testcase_01 AC 132 ms
55,932 KB
testcase_02 AC 137 ms
55,836 KB
testcase_03 AC 135 ms
55,924 KB
testcase_04 AC 133 ms
55,684 KB
testcase_05 AC 138 ms
55,936 KB
testcase_06 AC 137 ms
56,064 KB
testcase_07 AC 138 ms
55,780 KB
testcase_08 WA -
testcase_09 AC 135 ms
56,108 KB
testcase_10 AC 136 ms
55,944 KB
testcase_11 AC 136 ms
55,948 KB
testcase_12 WA -
testcase_13 AC 130 ms
56,008 KB
testcase_14 AC 128 ms
55,620 KB
testcase_15 AC 133 ms
55,704 KB
testcase_16 AC 134 ms
56,140 KB
testcase_17 AC 131 ms
56,040 KB
testcase_18 AC 135 ms
55,620 KB
testcase_19 AC 130 ms
56,144 KB
testcase_20 AC 128 ms
55,880 KB
testcase_21 AC 124 ms
55,808 KB
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No419 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		double a = sc.nextDouble();
		double b = sc.nextDouble();
		
		System.out.println(Math.sqrt(Math.pow(Math.max(a, b), 2) - Math.pow(Math.min(a, b), 2)));
	}
}
0