結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,236 KB
testcase_01 AC 66 ms
71,472 KB
testcase_02 RE -
testcase_03 AC 67 ms
71,104 KB
testcase_04 AC 69 ms
71,188 KB
testcase_05 AC 68 ms
71,704 KB
testcase_06 AC 68 ms
71,612 KB
testcase_07 AC 68 ms
72,000 KB
testcase_08 AC 68 ms
71,544 KB
testcase_09 AC 68 ms
71,932 KB
testcase_10 WA -
testcase_11 RE -
testcase_12 AC 67 ms
71,456 KB
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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