結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 118 ms
55,480 KB
testcase_02 AC 119 ms
56,204 KB
testcase_03 WA -
testcase_04 AC 118 ms
55,928 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 119 ms
56,064 KB
testcase_08 AC 118 ms
55,492 KB
testcase_09 AC 117 ms
55,780 KB
testcase_10 AC 119 ms
55,624 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) / a + (c * c + d * d) / (a * 4);
		System.out.println(Math.sqrt(powans));
	}
}
0