結果

問題 No.1179 Quadratic Equation
ユーザー rlangevinrlangevin
提出日時 2023-01-01 23:12:55
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 210 bytes
コンパイル時間 339 ms
コンパイル使用メモリ 87,240 KB
実行使用メモリ 71,784 KB
最終ジャッジ日時 2023-08-17 23:13:40
合計ジャッジ時間 2,447 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,380 KB
testcase_01 AC 76 ms
71,784 KB
testcase_02 AC 74 ms
71,448 KB
testcase_03 AC 78 ms
71,156 KB
testcase_04 AC 75 ms
71,304 KB
testcase_05 AC 76 ms
71,332 KB
testcase_06 AC 75 ms
71,508 KB
testcase_07 AC 77 ms
71,476 KB
testcase_08 AC 74 ms
71,436 KB
testcase_09 AC 76 ms
71,556 KB
testcase_10 WA -
testcase_11 AC 76 ms
71,492 KB
testcase_12 AC 76 ms
71,684 KB
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import *

a, b, c = map(int, input().split())
D = b * b - 4 * a * c
if D < 0:
    print("imaginary")
elif D == 0:
    print(-b/(2 * a))
else:
    print( (-b - sqrt(D))/(2 * a), (-b + sqrt(D))/(2 * a))
0