a,b,c=map(int,input().split())
if b**2-4*a*c > 0:
L0=int(((-b+(b**2-4*a*c)**0.5)//(2*a)))
L1=int(((-b-(b**2-4*a*c)**0.5)//(2*a)))
print("Two different roots x1={} , x2={}".format(L0,L1))
elif b**2-4*a*c == 0:
L0=int(((-1*b+(b**2-4*a*c)**0.5)//(2*a)))
print("Two same roots x={}".format(L0)
else:
print("No real root")
print("Two same roots x={}".format(L0)
後面少一個括號
感謝!!