結果

問題 No.1179 Quadratic Equation
ユーザー NatsubiSoganNatsubiSogan
提出日時 2020-07-24 22:40:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 153 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 10,552 KB
実行使用メモリ 8,064 KB
最終ジャッジ日時 2023-09-08 05:12:06
合計ジャッジ時間 1,141 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,856 KB
testcase_01 WA -
testcase_02 AC 16 ms
7,820 KB
testcase_03 AC 15 ms
7,936 KB
testcase_04 AC 16 ms
7,880 KB
testcase_05 AC 16 ms
7,876 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 15 ms
7,864 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 16 ms
7,892 KB
testcase_12 WA -
testcase_13 AC 16 ms
7,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import sqrt
a,b,c=map(int,input().split())
try:print(*set([(-b+sqrt(b**2-4*a*c))/(2*a),(-b-sqrt(b**2-4*a*c))/(2*a)]))
except:print("imaginary")
0