#32640: 求教學 我已經做90%了但是就是不能


boyxvampy@gmail.com (xvampy)


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")

#32669: Re: 求教學 我已經做90%了但是就是不能


cges30901 (cges30901)


    print("Two same roots x={}".format(L0)


後面少一個括號

#32678: Re: 求教學 我已經做90%了但是就是不能


014131@inhs.tc.edu.tw (侯坤宏)


    print("Two same roots x={}".format(L0)


後面少一個括號


感謝!!