a,b,c=map(int, input().split())
r=b**2-4*a*c
if r>0:
x1 = int((b*-1+r**0.5)/(2*a))
x2 = int((b*-1-r**0.5)/(2*a))
if x1>x2:
print("Two different roots x1=%d , x2=%d" % (x1, x2))
elif x2>x1:
print("Two different roots x2=%d , x1=%d" % (x2, x1))
elif x1==x2:
print("Two same roots x=%d" % x1)
else:
print("No real root")
1.
if r>0:
2.
if x1>x2:
print("Two different roots x1=%d , x2=%d" % (x1, x2))
elif x2>x1:
print("Two different roots x2=%d , x1=%d" % (x2, x1))
elif x1==x2:
print("Two same roots x=%d" % x1)
1. 改成r>=0
2. 這6行縮排
1.
if r>0:
2.
if x1>x2:
print("Two different roots x1=%d , x2=%d" % (x1, x2))
elif x2>x1:
print("Two different roots x2=%d , x1=%d" % (x2, x1))
elif x1==x2:
print("Two same roots x=%d" % x1)1. 改成r>=0
2. 這6行縮排
還是沒過 它顯示"name 'x1' is not defined"