結果

問題 No.1178 Can you draw a Circle?
ユーザー tenten
提出日時 2020-10-15 16:11:50
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 385 bytes
コンパイル時間 2,157 ms
コンパイル使用メモリ 73,952 KB
実行使用メモリ 41,224 KB
最終ジャッジ日時 2024-07-20 19:46:20
合計ジャッジ時間 4,490 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) + (c * c + d * d) / 4) / a;
		System.out.println(Math.sqrt(powans));
	}
}
0