結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 67 ms
71,644 KB
testcase_02 AC 66 ms
71,428 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 AC 66 ms
71,788 KB
testcase_06 AC 67 ms
71,736 KB
testcase_07 AC 67 ms
71,832 KB
testcase_08 AC 68 ms
71,688 KB
testcase_09 AC 66 ms
71,612 KB
testcase_10 WA -
testcase_11 AC 67 ms
71,388 KB
testcase_12 AC 68 ms
71,548 KB
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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