結果

問題 No.1064 ∪∩∩ / Cup Cap Cap
ユーザー tanakkitanakki
提出日時 2020-05-29 21:44:05
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 356 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 81,872 KB
実行使用メモリ 53,880 KB
最終ジャッジ日時 2024-04-23 21:02:16
合計ジャッジ時間 2,753 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 36 ms
52,192 KB
testcase_02 AC 34 ms
53,440 KB
testcase_03 WA -
testcase_04 AC 35 ms
52,316 KB
testcase_05 AC 34 ms
52,820 KB
testcase_06 AC 36 ms
52,076 KB
testcase_07 AC 35 ms
52,400 KB
testcase_08 AC 34 ms
52,696 KB
testcase_09 AC 38 ms
52,360 KB
testcase_10 AC 36 ms
52,884 KB
testcase_11 AC 36 ms
51,944 KB
testcase_12 AC 37 ms
53,712 KB
testcase_13 AC 38 ms
53,164 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 35 ms
52,124 KB
testcase_25 AC 35 ms
52,316 KB
testcase_26 AC 36 ms
52,064 KB
testcase_27 AC 36 ms
53,840 KB
testcase_28 AC 37 ms
52,872 KB
testcase_29 AC 36 ms
53,236 KB
testcase_30 AC 35 ms
53,092 KB
testcase_31 AC 37 ms
52,484 KB
testcase_32 AC 36 ms
52,628 KB
testcase_33 AC 34 ms
52,884 KB
testcase_34 AC 37 ms
52,428 KB
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 37 ms
52,348 KB
testcase_38 WA -
testcase_39 WA -
権限があれば一括ダウンロードができます

ソースコード

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(x1, y1, x2, y2)
    print(p, q)
0