結果
| 問題 |
No.1064 ∪∩∩ / Cup Cap Cap
|
| コンテスト | |
| ユーザー |
ks2m
|
| 提出日時 | 2020-05-29 21:48:28 |
| 言語 | Java (openjdk 23) |
| 結果 |
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 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 36 |
ソースコード
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);
}
}
}
ks2m