結果

問題 No.1179 Quadratic Equation
ユーザー stngstng
提出日時 2022-09-24 18:05:47
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 207 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 86,956 KB
実行使用メモリ 79,360 KB
最終ジャッジ日時 2023-08-24 00:32:27
合計ジャッジ時間 2,681 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,472 KB
testcase_01 RE -
testcase_02 AC 67 ms
71,220 KB
testcase_03 AC 68 ms
71,364 KB
testcase_04 AC 65 ms
71,424 KB
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 67 ms
71,372 KB
testcase_12 RE -
testcase_13 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c = map(int,input().split())
tmp = b**2-4*a*c
if tmp < 0:
    print("imaginary")
    exit()

if tmp == 0:
    print(-b/(2*a))
else:
    print(a[1])
    print((-b-(tmp**0.5))/(2*a), (-b+(tmp**0.5))/(2*a))
0