結果

問題 No.1178 Can you draw a Circle?
ユーザー tentententen
提出日時 2021-02-04 21:01:37
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 446 bytes
コンパイル時間 1,989 ms
コンパイル使用メモリ 72,660 KB
実行使用メモリ 56,276 KB
最終ジャッジ日時 2023-09-13 17:43:51
合計ジャッジ時間 6,227 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
56,276 KB
testcase_01 AC 119 ms
55,660 KB
testcase_02 AC 121 ms
56,044 KB
testcase_03 AC 126 ms
55,728 KB
testcase_04 AC 120 ms
55,936 KB
testcase_05 AC 119 ms
56,268 KB
testcase_06 AC 119 ms
55,716 KB
testcase_07 AC 119 ms
55,852 KB
testcase_08 AC 119 ms
55,864 KB
testcase_09 AC 122 ms
55,680 KB
testcase_10 AC 126 ms
55,832 KB
testcase_11 AC 122 ms
54,348 KB
testcase_12 AC 120 ms
55,452 KB
testcase_13 AC 121 ms
55,880 KB
testcase_14 AC 122 ms
55,364 KB
testcase_15 AC 122 ms
55,728 KB
testcase_16 AC 126 ms
55,832 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double a = sc.nextInt();
        double b = sc.nextInt();
        double c = sc.nextInt();
        double d = sc.nextInt();
        double e = sc.nextInt();
        double f = sc.nextInt();
        double pow2 = f - e + c * c / a / 4 + d * d / b / 4;
        System.out.println(Math.sqrt(pow2 / a));
    }
}
0