#45319: python


suyueh (suyueh)

學校 : 不指定學校
編號 : 272111
來源 : [125.228.45.241]
最後登入時間 :
2025-06-02 18:21:06

a,b,c=map(int,input().split())
if b*b-4*a*c<0:
print("No real root")
else:
r1=round((b*-1+(b*b-(4*a*c))**0.5)/(a*2))
r2=round((b*-1-(b*b-(4*a*c))**0.5)/(a*2))
if r2>r1:
r1,r2=r2,r1
if r1!=r2:
print("Two different roots x1=" + str(r1)+ " , x2=" + str(r2))
elif r1==r2:
print("Two same roots x="+str(r1))