結果

問題 No.1064 ∪∩∩ / Cup Cap Cap
ユーザー tamato
提出日時 2020-05-29 21:51:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 354 bytes
コンパイル時間 377 ms
コンパイル使用メモリ 82,624 KB
実行使用メモリ 54,108 KB
最終ジャッジ日時 2024-11-06 03:53:44
合計ジャッジ時間 3,012 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 36
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    from math import sqrt
    input = sys.stdin.readline

    a, b, c, d = map(int, input().split())

    D = (a-c) ** 2 - 4 * 2 * (b-d)
    if D < 0:
        print("No")
    elif D == 0:
        print("Yes")
    else:
        print((a+c) / 2, (b+d) / 2)


if __name__ == '__main__':
    main()
0