結果

問題 No.1064 ∪∩∩ / Cup Cap Cap
ユーザー ks2m
提出日時 2020-05-29 21:40:01
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 524 bytes
コンパイル時間 2,433 ms
コンパイル使用メモリ 77,268 KB
実行使用メモリ 57,040 KB
最終ジャッジ日時 2024-11-06 02:58:05
合計ジャッジ時間 10,343 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13 WA * 23
権限があれば一括ダウンロードができます

ソースコード

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();

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