結果

問題 No.735 接線
ユーザー tsunabittsunabit
提出日時 2019-07-02 21:42:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 148 ms / 2,000 ms
コード長 321 bytes
コンパイル時間 3,544 ms
コンパイル使用メモリ 72,408 KB
実行使用メモリ 58,472 KB
最終ジャッジ日時 2023-10-11 21:10:26
合計ジャッジ時間 9,894 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
57,924 KB
testcase_01 AC 140 ms
55,940 KB
testcase_02 AC 140 ms
58,180 KB
testcase_03 AC 141 ms
55,952 KB
testcase_04 AC 139 ms
55,908 KB
testcase_05 AC 143 ms
56,216 KB
testcase_06 AC 139 ms
55,952 KB
testcase_07 AC 140 ms
55,720 KB
testcase_08 AC 140 ms
56,512 KB
testcase_09 AC 141 ms
55,904 KB
testcase_10 AC 140 ms
58,472 KB
testcase_11 AC 139 ms
56,292 KB
testcase_12 AC 140 ms
55,656 KB
testcase_13 AC 139 ms
56,276 KB
testcase_14 AC 139 ms
55,948 KB
testcase_15 AC 139 ms
56,124 KB
testcase_16 AC 138 ms
55,948 KB
testcase_17 AC 138 ms
55,692 KB
testcase_18 AC 139 ms
56,144 KB
testcase_19 AC 140 ms
56,412 KB
testcase_20 AC 140 ms
56,024 KB
testcase_21 AC 141 ms
56,352 KB
testcase_22 AC 139 ms
55,868 KB
testcase_23 AC 138 ms
56,072 KB
testcase_24 AC 148 ms
56,176 KB
testcase_25 AC 143 ms
55,888 KB
testcase_26 AC 137 ms
55,904 KB
testcase_27 AC 139 ms
55,740 KB
testcase_28 AC 138 ms
56,096 KB
testcase_29 AC 140 ms
56,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
import java.math.*;

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