Нужна помощь с задачей Q. Корень зла. На компе все тесты вроде проходит, а как только подаю решение в контест выдает RE
from math import sqrt
a = int(input())
b = int(input())
c = int(input())
if a == 0 and b == 0 and c == 0:
print("Infinite solutions")
elif a == 0 and b == 0:
print("No solution")
elif a == 0:
print(f'{-c / b:.2f}')
else:
d = b ** 2 - 4 * a * c
if d < 0:
print("No solution")
elif d == 0:
print(f'{-1 * b / (2 * a):.2f}')
else:
x1 = (-1 * b - sqrt(d)) / (2 * a)
x2 = (-1 * b + sqrt(d)) / (2 * a)
print(f'{x1:.2f} {x2:.2f}')