結果

問題 No.1179 Quadratic Equation
ユーザー 👑 KazunKazun
提出日時 2020-08-21 21:34:31
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 182 bytes
コンパイル時間 132 ms
コンパイル使用メモリ 82,120 KB
実行使用メモリ 53,872 KB
最終ジャッジ日時 2024-04-23 05:34:10
合計ジャッジ時間 1,134 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,500 KB
testcase_01 AC 33 ms
53,628 KB
testcase_02 AC 37 ms
53,208 KB
testcase_03 AC 32 ms
52,468 KB
testcase_04 AC 34 ms
52,464 KB
testcase_05 AC 35 ms
53,872 KB
testcase_06 AC 33 ms
53,076 KB
testcase_07 AC 32 ms
52,740 KB
testcase_08 AC 32 ms
53,404 KB
testcase_09 AC 33 ms
53,324 KB
testcase_10 WA -
testcase_11 AC 33 ms
53,084 KB
testcase_12 AC 34 ms
52,148 KB
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import sqrt
a,b,c=map(int,input().split())

D=b*b-4*a*c
if D>0:
    print((-b-sqrt(D))/(2*a),(-b+sqrt(D))/(2*a))
elif D==0:
    print(-b/(2*a))
else:
    print("imaginary")
0