#28103: 這樣為什麼不能全部AC?


511254@stu.tnssh.tn.edu.tw (YU-CHENG HOU)


a,b,c=map(int,input().split())
if b**2-4*a*c==0:
    x=-b/2*a
    print("Two same roots"+" "+"x="+str(int((x))) )
else:  
    if b**2-4*a*c>0:
        x1=(-b+(b**2-4*a*c)**0.5)/2*a
        x2=(-b-(b**2-4*a*c)**0.5)/2*a
        print("Two different roots"+" "+"x1="+str(int(x1))+" "+","+" "+"x2="+str(int(x2)) )
    else:
        print("No real root")
#28114: Re:這樣為什麼不能全部AC?


cges30901 (cges30901)


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


2*a要括號