結果
問題 | No.1064 ∪∩∩ / Cup Cap Cap |
ユーザー | ks2m |
提出日時 | 2020-05-29 21:40:01 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 524 bytes |
コンパイル時間 | 1,992 ms |
コンパイル使用メモリ | 76,592 KB |
実行使用メモリ | 42,804 KB |
最終ジャッジ日時 | 2024-04-23 20:40:09 |
合計ジャッジ時間 | 8,353 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 127 ms
41,548 KB |
testcase_01 | AC | 107 ms
41,252 KB |
testcase_02 | AC | 96 ms
40,236 KB |
testcase_03 | AC | 138 ms
42,704 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | AC | 134 ms
42,260 KB |
testcase_15 | AC | 147 ms
42,340 KB |
testcase_16 | AC | 155 ms
42,504 KB |
testcase_17 | AC | 148 ms
42,500 KB |
testcase_18 | AC | 135 ms
42,456 KB |
testcase_19 | AC | 133 ms
42,252 KB |
testcase_20 | AC | 142 ms
42,428 KB |
testcase_21 | AC | 145 ms
42,480 KB |
testcase_22 | AC | 147 ms
42,744 KB |
testcase_23 | AC | 131 ms
42,400 KB |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | WA | - |
testcase_35 | WA | - |
testcase_36 | AC | 124 ms
41,628 KB |
testcase_37 | WA | - |
testcase_38 | AC | 135 ms
42,548 KB |
testcase_39 | AC | 121 ms
42,412 KB |
ソースコード
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); } } }