結果
| 問題 | No.1064 ∪∩∩ / Cup Cap Cap | 
| コンテスト | |
| ユーザー |  maspy | 
| 提出日時 | 2020-05-29 21:25:54 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 33 ms / 2,000 ms | 
| コード長 | 380 bytes | 
| コンパイル時間 | 184 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-11-06 02:24:52 | 
| 合計ジャッジ時間 | 2,519 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 36 | 
ソースコード
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
def f(a, b, c, d):
    p, q = a - c, b - d
    D = p * p - 8 * q
    if D < 0:
        return 'No'
    elif D == 0:
        return 'Yes'
    else:
        return '{} {}'.format((a + c) / 2, (b + d) / 2)
a, b, c, d = map(int, read().split())
print(f(a, b, c, d))
            
            
            
        