結果

問題 No.735 接線
ユーザー tentententen
提出日時 2020-11-04 11:35:35
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 254 bytes
コンパイル時間 1,925 ms
コンパイル使用メモリ 71,280 KB
実行使用メモリ 56,624 KB
最終ジャッジ日時 2023-09-29 15:43:35
合計ジャッジ時間 7,657 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
56,444 KB
testcase_01 AC 126 ms
56,164 KB
testcase_02 AC 127 ms
56,300 KB
testcase_03 AC 126 ms
56,376 KB
testcase_04 AC 128 ms
56,624 KB
testcase_05 AC 126 ms
56,160 KB
testcase_06 AC 127 ms
56,044 KB
testcase_07 AC 126 ms
56,308 KB
testcase_08 AC 126 ms
54,024 KB
testcase_09 AC 127 ms
55,848 KB
testcase_10 AC 126 ms
56,124 KB
testcase_11 AC 126 ms
56,120 KB
testcase_12 AC 126 ms
56,412 KB
testcase_13 AC 130 ms
56,536 KB
testcase_14 AC 127 ms
56,464 KB
testcase_15 AC 126 ms
56,188 KB
testcase_16 AC 126 ms
56,216 KB
testcase_17 AC 125 ms
55,960 KB
testcase_18 AC 127 ms
56,264 KB
testcase_19 AC 126 ms
56,084 KB
testcase_20 AC 126 ms
56,472 KB
testcase_21 AC 124 ms
56,188 KB
testcase_22 AC 131 ms
56,056 KB
testcase_23 AC 137 ms
55,612 KB
testcase_24 AC 128 ms
56,020 KB
testcase_25 AC 128 ms
54,276 KB
testcase_26 AC 127 ms
55,832 KB
testcase_27 AC 127 ms
56,408 KB
testcase_28 AC 126 ms
56,116 KB
testcase_29 AC 124 ms
55,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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