結果

問題 No.1064 ∪∩∩ / Cup Cap Cap
ユーザー ks2mks2m
提出日時 2020-05-29 21:48:28
言語 Java21
(openjdk 21)
結果
AC  
実行時間 143 ms / 2,000 ms
コード長 484 bytes
コンパイル時間 2,022 ms
コンパイル使用メモリ 77,256 KB
実行使用メモリ 42,828 KB
最終ジャッジ日時 2024-04-23 21:21:03
合計ジャッジ時間 7,873 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
42,328 KB
testcase_01 AC 110 ms
41,152 KB
testcase_02 AC 106 ms
39,900 KB
testcase_03 AC 131 ms
42,088 KB
testcase_04 AC 116 ms
41,224 KB
testcase_05 AC 113 ms
40,808 KB
testcase_06 AC 121 ms
41,076 KB
testcase_07 AC 115 ms
40,936 KB
testcase_08 AC 103 ms
39,948 KB
testcase_09 AC 97 ms
39,916 KB
testcase_10 AC 107 ms
40,312 KB
testcase_11 AC 100 ms
39,936 KB
testcase_12 AC 109 ms
41,204 KB
testcase_13 AC 102 ms
40,396 KB
testcase_14 AC 138 ms
42,348 KB
testcase_15 AC 142 ms
42,484 KB
testcase_16 AC 135 ms
42,472 KB
testcase_17 AC 141 ms
42,456 KB
testcase_18 AC 137 ms
42,828 KB
testcase_19 AC 128 ms
42,552 KB
testcase_20 AC 137 ms
42,604 KB
testcase_21 AC 139 ms
42,520 KB
testcase_22 AC 138 ms
42,084 KB
testcase_23 AC 134 ms
42,248 KB
testcase_24 AC 116 ms
40,176 KB
testcase_25 AC 117 ms
41,288 KB
testcase_26 AC 105 ms
40,576 KB
testcase_27 AC 102 ms
40,308 KB
testcase_28 AC 102 ms
40,124 KB
testcase_29 AC 107 ms
41,316 KB
testcase_30 AC 108 ms
41,648 KB
testcase_31 AC 93 ms
39,804 KB
testcase_32 AC 110 ms
41,352 KB
testcase_33 AC 101 ms
40,376 KB
testcase_34 AC 107 ms
41,364 KB
testcase_35 AC 130 ms
42,408 KB
testcase_36 AC 137 ms
42,488 KB
testcase_37 AC 98 ms
39,352 KB
testcase_38 AC 143 ms
42,368 KB
testcase_39 AC 140 ms
42,628 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 = (long) (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