結果

問題 No.1064 ∪∩∩ / Cup Cap Cap
ユーザー Nagisa
提出日時 2020-05-29 21:34:57
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 34 ms / 2,000 ms
コード長 300 bytes
コンパイル時間 140 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-11-06 02:42:16
合計ジャッジ時間 2,509 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 36
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from math import sqrt
input = sys.stdin.readline

def main():
    a, b, c, d = map(int,input().split())
    if (a-c)**2 - 8*(b-d) < 0:
        print("No")
    elif (a-c)**2 - 8*(b-d) == 0:
        print("Yes")
    else:
        print((a+c)/2,(b+d)/2)
if __name__ == '__main__':
    main()
0