結果

問題 No.419 直角三角形
ユーザー 37zigen37zigen
提出日時 2016-09-10 01:33:11
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 338 bytes
コンパイル時間 4,887 ms
コンパイル使用メモリ 74,668 KB
実行使用メモリ 56,252 KB
最終ジャッジ日時 2024-04-28 06:27:02
合計ジャッジ時間 6,740 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
53,988 KB
testcase_01 AC 136 ms
54,152 KB
testcase_02 AC 125 ms
54,244 KB
testcase_03 AC 111 ms
53,740 KB
testcase_04 AC 123 ms
54,252 KB
testcase_05 AC 119 ms
53,632 KB
testcase_06 AC 111 ms
53,640 KB
testcase_07 AC 120 ms
53,952 KB
testcase_08 WA -
testcase_09 AC 104 ms
53,456 KB
testcase_10 AC 118 ms
54,080 KB
testcase_11 AC 131 ms
54,412 KB
testcase_12 WA -
testcase_13 AC 116 ms
52,656 KB
testcase_14 AC 118 ms
41,324 KB
testcase_15 AC 130 ms
41,464 KB
testcase_16 AC 121 ms
41,484 KB
testcase_17 AC 119 ms
41,576 KB
testcase_18 AC 126 ms
41,680 KB
testcase_19 AC 120 ms
41,084 KB
testcase_20 AC 130 ms
42,040 KB
testcase_21 AC 129 ms
41,028 KB
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

package No400番台;

import java.util.Scanner;

public class Q419 {
	public static void main(String[] args) {
		new Q419().solver();
	}

	void solver() {
		Scanner sc = new Scanner(System.in);
		double a = sc.nextDouble();
		double b = sc.nextDouble();

		double ans = Math.sqrt(Math.abs(a * a - b * b));
		System.out.println(ans);
	}
}
0