結果

問題 No.1064 ∪∩∩ / Cup Cap Cap
ユーザー uni_pythonuni_python
提出日時 2020-09-02 23:15:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 540 bytes
コンパイル時間 398 ms
コンパイル使用メモリ 87,168 KB
実行使用メモリ 71,980 KB
最終ジャッジ日時 2023-08-14 06:05:02
合計ジャッジ時間 5,788 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,720 KB
testcase_01 AC 69 ms
71,236 KB
testcase_02 AC 71 ms
71,324 KB
testcase_03 AC 71 ms
71,604 KB
testcase_04 AC 72 ms
71,360 KB
testcase_05 AC 72 ms
71,336 KB
testcase_06 AC 74 ms
71,396 KB
testcase_07 AC 71 ms
71,332 KB
testcase_08 AC 71 ms
71,580 KB
testcase_09 AC 70 ms
71,424 KB
testcase_10 AC 71 ms
71,460 KB
testcase_11 AC 72 ms
71,184 KB
testcase_12 AC 70 ms
71,376 KB
testcase_13 AC 71 ms
71,496 KB
testcase_14 AC 72 ms
71,960 KB
testcase_15 AC 73 ms
71,728 KB
testcase_16 AC 73 ms
71,792 KB
testcase_17 AC 69 ms
71,800 KB
testcase_18 AC 68 ms
71,788 KB
testcase_19 AC 71 ms
71,564 KB
testcase_20 AC 70 ms
71,816 KB
testcase_21 AC 71 ms
71,916 KB
testcase_22 AC 70 ms
71,804 KB
testcase_23 AC 71 ms
71,748 KB
testcase_24 AC 68 ms
71,180 KB
testcase_25 AC 70 ms
71,304 KB
testcase_26 AC 72 ms
71,188 KB
testcase_27 AC 68 ms
71,500 KB
testcase_28 AC 72 ms
71,376 KB
testcase_29 AC 71 ms
71,184 KB
testcase_30 AC 69 ms
71,320 KB
testcase_31 AC 69 ms
71,532 KB
testcase_32 AC 72 ms
71,376 KB
testcase_33 AC 73 ms
71,436 KB
testcase_34 AC 72 ms
71,312 KB
testcase_35 AC 73 ms
71,732 KB
testcase_36 AC 74 ms
71,676 KB
testcase_37 AC 71 ms
71,312 KB
testcase_38 AC 72 ms
71,980 KB
testcase_39 AC 71 ms
71,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    a,b,c,d=MI()
    
    D= (a-c)**2 - 4*2*(b-d)
    
    if D==0:
        print("Yes")
    elif D<0:
        print("No")
    else:
        x1=(-(a-c)+D**0.5)/4
        x2=(-(a-c)-D**0.5)/4
        
        y1=x1**2 + a*x1 + b
        y2=x2**2 + a*x2 + b
        
        p=(y2-y1)/(x2-x1)
        q=y1-p*x1
        
        print(p,q)
        


main()
0