結果

問題 No.955 ax^2+bx+c=0
ユーザー 👑 KazunKazun
提出日時 2021-01-01 18:21:16
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 210 bytes
コンパイル時間 378 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 65,280 KB
最終ジャッジ日時 2024-10-11 12:07:16
合計ジャッジ時間 9,753 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 45 WA * 33 RE * 44
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import sqrt

a,b,c=map(int,input().split())
D=b*b-4*a*c

if D<0:
    print(0)
elif D==0:
    print(1)
    print(-b/(2*a))
else:
    print(2)
    print((-b-sqrt(D))/(2*a))
    print((-b+sqrt(D))/(2*a))
0