結果

問題 No.419 直角三角形
ユーザー fjafjafjafjafjafja
提出日時 2017-09-11 00:14:27
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 266 bytes
コンパイル時間 2,873 ms
コンパイル使用メモリ 74,432 KB
実行使用メモリ 41,484 KB
最終ジャッジ日時 2024-04-25 03:14:49
合計ジャッジ時間 6,441 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
40,384 KB
testcase_01 AC 103 ms
40,400 KB
testcase_02 AC 101 ms
40,216 KB
testcase_03 AC 113 ms
41,360 KB
testcase_04 AC 100 ms
40,244 KB
testcase_05 AC 113 ms
41,156 KB
testcase_06 AC 110 ms
41,320 KB
testcase_07 AC 110 ms
41,032 KB
testcase_08 WA -
testcase_09 AC 116 ms
41,016 KB
testcase_10 AC 116 ms
41,056 KB
testcase_11 AC 116 ms
41,424 KB
testcase_12 WA -
testcase_13 AC 105 ms
40,088 KB
testcase_14 AC 111 ms
41,220 KB
testcase_15 AC 112 ms
41,484 KB
testcase_16 AC 117 ms
41,412 KB
testcase_17 AC 109 ms
41,076 KB
testcase_18 AC 105 ms
40,424 KB
testcase_19 AC 111 ms
41,016 KB
testcase_20 AC 110 ms
41,336 KB
testcase_21 AC 114 ms
41,184 KB
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.util.Scanner;

public class N419
{

	public static void main(String[] args)
	{
		Scanner sc=new Scanner (System.in);
		int a=sc.nextInt(),b=sc.nextInt();
		double c=Math.sqrt(Math.abs(a*a-b*b));
		System.out.printf("%.7f\n",c);
	}

}
0