結果

問題 No.1178 Can you draw a Circle?
ユーザー tentententen
提出日時 2020-10-15 16:11:50
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 385 bytes
コンパイル時間 2,131 ms
コンパイル使用メモリ 72,120 KB
実行使用メモリ 57,944 KB
最終ジャッジ日時 2023-09-28 01:10:39
合計ジャッジ時間 4,900 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 120 ms
55,884 KB
testcase_02 AC 122 ms
56,012 KB
testcase_03 WA -
testcase_04 AC 118 ms
56,132 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 130 ms
55,728 KB
testcase_08 AC 122 ms
55,892 KB
testcase_09 AC 120 ms
55,848 KB
testcase_10 AC 121 ms
55,872 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
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 powans = ((f - e) + (c * c + d * d) / 4) / a;
		System.out.println(Math.sqrt(powans));
	}
}
0