結果

問題 No.1178 Can you draw a Circle?
ユーザー tentententen
提出日時 2020-08-26 08:26:20
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 448 bytes
コンパイル時間 1,764 ms
コンパイル使用メモリ 78,360 KB
実行使用メモリ 41,704 KB
最終ジャッジ日時 2024-04-25 04:19:40
合計ジャッジ時間 4,250 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 109 ms
41,140 KB
testcase_02 AC 99 ms
40,144 KB
testcase_03 AC 111 ms
40,976 KB
testcase_04 AC 110 ms
41,200 KB
testcase_05 AC 107 ms
41,268 KB
testcase_06 WA -
testcase_07 AC 109 ms
40,216 KB
testcase_08 AC 107 ms
41,424 KB
testcase_09 AC 112 ms
41,384 KB
testcase_10 AC 106 ms
39,744 KB
testcase_11 WA -
testcase_12 AC 109 ms
41,136 KB
testcase_13 AC 110 ms
41,160 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
権限があれば一括ダウンロードができます

ソースコード

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 ans = f - e + c * c / a / a / 4 + d * d / b / b / 4;
        System.out.println(Math.sqrt(ans));
    }
}
0