結果

問題 No.1064 ∪∩∩ / Cup Cap Cap
ユーザー ks2mks2m
提出日時 2020-05-29 21:47:45
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 477 bytes
コンパイル時間 2,342 ms
コンパイル使用メモリ 77,128 KB
実行使用メモリ 42,764 KB
最終ジャッジ日時 2024-04-23 21:13:50
合計ジャッジ時間 9,497 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 165 ms
42,288 KB
testcase_01 AC 132 ms
41,128 KB
testcase_02 AC 132 ms
41,500 KB
testcase_03 AC 168 ms
42,556 KB
testcase_04 AC 135 ms
41,392 KB
testcase_05 AC 137 ms
41,836 KB
testcase_06 AC 133 ms
41,564 KB
testcase_07 AC 135 ms
41,100 KB
testcase_08 AC 134 ms
40,920 KB
testcase_09 AC 137 ms
41,696 KB
testcase_10 AC 140 ms
41,268 KB
testcase_11 AC 136 ms
41,312 KB
testcase_12 AC 133 ms
41,188 KB
testcase_13 AC 137 ms
41,340 KB
testcase_14 AC 167 ms
42,456 KB
testcase_15 AC 170 ms
42,384 KB
testcase_16 WA -
testcase_17 AC 168 ms
42,568 KB
testcase_18 AC 173 ms
42,276 KB
testcase_19 AC 155 ms
42,184 KB
testcase_20 AC 172 ms
42,652 KB
testcase_21 AC 168 ms
42,764 KB
testcase_22 AC 173 ms
42,404 KB
testcase_23 AC 170 ms
42,636 KB
testcase_24 AC 136 ms
41,640 KB
testcase_25 AC 133 ms
41,172 KB
testcase_26 AC 118 ms
40,204 KB
testcase_27 AC 133 ms
41,260 KB
testcase_28 AC 135 ms
41,520 KB
testcase_29 AC 133 ms
41,300 KB
testcase_30 AC 135 ms
41,244 KB
testcase_31 AC 136 ms
41,216 KB
testcase_32 AC 131 ms
41,428 KB
testcase_33 AC 133 ms
41,372 KB
testcase_34 AC 134 ms
41,248 KB
testcase_35 AC 169 ms
42,568 KB
testcase_36 AC 166 ms
42,640 KB
testcase_37 AC 134 ms
41,352 KB
testcase_38 AC 166 ms
42,460 KB
testcase_39 AC 165 ms
42,356 KB
権限があれば一括ダウンロードができます

ソースコード

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