結果

問題 No.1064 ∪∩∩ / Cup Cap Cap
ユーザー ks2m
提出日時 2020-05-29 21:47:45
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 477 bytes
コンパイル時間 2,815 ms
コンパイル使用メモリ 76,548 KB
実行使用メモリ 55,912 KB
最終ジャッジ日時 2024-11-06 03:33:43
合計ジャッジ時間 9,810 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 35 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int d = sc.nextInt();
		sc.close();

		long h = (a - c) * (a - c) - 8 * (b - d);
		if (h == 0) {
			System.out.println("Yes");
		} else if (h < 0) {
			System.out.println("No");
		} else {
			System.out.println((a + c) / 2.0 + " " + (b + d) / 2.0);
		}
	}
}
0