結果

問題 No.1064 ∪∩∩ / Cup Cap Cap
ユーザー ks2mks2m
提出日時 2020-05-29 21:48:28
言語 Java21
(openjdk 21)
結果
AC  
実行時間 175 ms / 2,000 ms
コード長 484 bytes
コンパイル時間 3,194 ms
コンパイル使用メモリ 76,636 KB
実行使用メモリ 55,148 KB
最終ジャッジ日時 2024-11-06 03:40:31
合計ジャッジ時間 10,664 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 169 ms
54,872 KB
testcase_01 AC 135 ms
54,052 KB
testcase_02 AC 134 ms
54,132 KB
testcase_03 AC 170 ms
55,148 KB
testcase_04 AC 142 ms
54,096 KB
testcase_05 AC 135 ms
54,092 KB
testcase_06 AC 141 ms
54,036 KB
testcase_07 AC 139 ms
53,996 KB
testcase_08 AC 138 ms
54,028 KB
testcase_09 AC 137 ms
53,996 KB
testcase_10 AC 135 ms
54,184 KB
testcase_11 AC 137 ms
54,008 KB
testcase_12 AC 137 ms
53,888 KB
testcase_13 AC 137 ms
53,904 KB
testcase_14 AC 170 ms
55,104 KB
testcase_15 AC 172 ms
54,732 KB
testcase_16 AC 172 ms
54,876 KB
testcase_17 AC 172 ms
54,880 KB
testcase_18 AC 173 ms
54,936 KB
testcase_19 AC 169 ms
55,052 KB
testcase_20 AC 171 ms
54,780 KB
testcase_21 AC 172 ms
55,060 KB
testcase_22 AC 172 ms
55,008 KB
testcase_23 AC 175 ms
54,880 KB
testcase_24 AC 135 ms
53,964 KB
testcase_25 AC 136 ms
54,252 KB
testcase_26 AC 138 ms
53,976 KB
testcase_27 AC 140 ms
53,872 KB
testcase_28 AC 136 ms
54,088 KB
testcase_29 AC 136 ms
54,208 KB
testcase_30 AC 136 ms
54,124 KB
testcase_31 AC 136 ms
54,068 KB
testcase_32 AC 134 ms
53,872 KB
testcase_33 AC 132 ms
54,220 KB
testcase_34 AC 134 ms
54,256 KB
testcase_35 AC 167 ms
55,060 KB
testcase_36 AC 166 ms
55,068 KB
testcase_37 AC 131 ms
54,260 KB
testcase_38 AC 169 ms
54,748 KB
testcase_39 AC 173 ms
55,116 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