結果

問題 No.1178 Can you draw a Circle?
ユーザー tentententen
提出日時 2020-12-29 12:54:40
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 452 bytes
コンパイル時間 1,946 ms
コンパイル使用メモリ 74,408 KB
実行使用メモリ 55,952 KB
最終ジャッジ日時 2024-04-15 13:40:55
合計ジャッジ時間 5,134 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 129 ms
41,196 KB
testcase_02 AC 130 ms
41,308 KB
testcase_03 AC 129 ms
41,380 KB
testcase_04 AC 129 ms
41,548 KB
testcase_05 AC 132 ms
41,376 KB
testcase_06 WA -
testcase_07 AC 131 ms
41,644 KB
testcase_08 AC 133 ms
41,596 KB
testcase_09 AC 130 ms
41,192 KB
testcase_10 AC 133 ms
41,520 KB
testcase_11 WA -
testcase_12 AC 143 ms
41,284 KB
testcase_13 AC 127 ms
41,412 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        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();
        f += c * c / 4 / a / a + d * d / 4 / b / b - e;
        System.out.println(Math.sqrt(f));
    }
}
0