結果

問題 No.1178 Can you draw a Circle?
ユーザー tenten
提出日時 2020-10-15 16:10:41
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 389 bytes
コンパイル時間 2,094 ms
コンパイル使用メモリ 73,716 KB
実行使用メモリ 41,424 KB
最終ジャッジ日時 2024-07-20 19:46:15
合計ジャッジ時間 4,487 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 5 WA * 10
権限があれば一括ダウンロードができます

ソースコード

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