結果

問題 No.1064 ∪∩∩ / Cup Cap Cap
ユーザー tanakkitanakki
提出日時 2020-05-29 21:57:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 330 bytes
コンパイル時間 286 ms
コンパイル使用メモリ 82,620 KB
実行使用メモリ 53,760 KB
最終ジャッジ日時 2024-04-23 22:00:34
合計ジャッジ時間 2,924 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,336 KB
testcase_01 AC 34 ms
52,548 KB
testcase_02 AC 35 ms
52,036 KB
testcase_03 AC 34 ms
53,276 KB
testcase_04 AC 37 ms
53,496 KB
testcase_05 AC 36 ms
52,420 KB
testcase_06 AC 34 ms
52,664 KB
testcase_07 AC 34 ms
53,344 KB
testcase_08 AC 33 ms
53,164 KB
testcase_09 AC 33 ms
52,252 KB
testcase_10 AC 32 ms
52,700 KB
testcase_11 AC 33 ms
52,812 KB
testcase_12 AC 33 ms
53,068 KB
testcase_13 AC 34 ms
53,016 KB
testcase_14 AC 33 ms
53,356 KB
testcase_15 AC 32 ms
52,604 KB
testcase_16 AC 34 ms
52,216 KB
testcase_17 AC 33 ms
53,140 KB
testcase_18 AC 33 ms
53,736 KB
testcase_19 AC 34 ms
52,076 KB
testcase_20 AC 34 ms
52,992 KB
testcase_21 AC 34 ms
52,392 KB
testcase_22 AC 33 ms
52,412 KB
testcase_23 AC 35 ms
52,812 KB
testcase_24 AC 34 ms
51,816 KB
testcase_25 AC 34 ms
53,348 KB
testcase_26 AC 36 ms
51,692 KB
testcase_27 AC 36 ms
52,088 KB
testcase_28 AC 37 ms
53,348 KB
testcase_29 AC 36 ms
52,308 KB
testcase_30 AC 35 ms
52,884 KB
testcase_31 AC 34 ms
53,496 KB
testcase_32 AC 34 ms
53,156 KB
testcase_33 AC 35 ms
52,952 KB
testcase_34 AC 38 ms
52,944 KB
testcase_35 AC 35 ms
53,420 KB
testcase_36 AC 37 ms
52,448 KB
testcase_37 AC 36 ms
52,188 KB
testcase_38 AC 37 ms
53,760 KB
testcase_39 AC 39 ms
52,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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:
    x1 = ((c-a) + ((a-c)**2-8*(b-d))**0.5) / 4
    x2 = ((c-a) - ((a-c)**2-8*(b-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)
0