import math
def quadratic(a, b, c):
if b*b-4*a*c < 0:
print('方程不存在解')
elif b*b-4*a*c == 0:
print('方程存在唯一解,x=', (-b+math.sqrt(b*b-4*a*c))/(2*a))
else:
print('方程存在两个解 x1=', (-b+math.sqrt(b*b-4*a*c)) /
(2*a), ' x2=', (-b-math.sqrt(b*b-4*a*c))/(2*a))
# e = float(input('输入a:'))
# f = float(input('输入b:'))
# g = float(input('输入c:'))
# 连续输入多个数字
e, f, g = map(float, input('输入三个数字:').split())
quadratic(e, f, g)