#22120: 哪裡錯了


zzzz100062@gmail.com (小小)


import math        #math.sqrt()
    a,b,c= map(int,input().split());  #a,b,c=map(int,input().split())
    if (b*b)-4*a*c < 0:
        print("No real root")
    elif (b*b)-4*a*c >= 0:
        x1 = (-b+math.sqrt((b*b)-4*a*c))/2*a
        x2 = (-b-math.sqrt((b*b)-4*a*c))/2*a
        x1 = int(x1)
        x2 = int(x2)     
        if x1>x2:
            print("Two different roots ","x1=",x1,"x2=",x2)
        elif x2>x1:
            print("Two different roots ","x2=",x2,"x1=",x1)
        elif x1==x2:
            print("Two same roots","x=",x1)  
  
#拜託幫幫忙
 
 
 
#22154: Re:哪裡錯了


hahahaiamhank (JUJUBE)


import math        #math.sqrt()
    a,b,c= map(int,input().split());  #a,b,c=map(int,input().split())
    if (b*b)-4*a*c < 0:
        print("No real root")
    elif (b*b)-4*a*c >= 0:
        x1 = (-b+math.sqrt((b*b)-4*a*c))/2*a
        x2 = (-b-math.sqrt((b*b)-4*a*c))/2*a
        x1 = int(x1)
        x2 = int(x2)     
        if x1>x2:
            print("Two different roots ","x1=",x1,"x2=",x2)
        elif x2>x1:
            print("Two different roots ","x2=",x2,"x1=",x1)
        elif x1==x2:
            print("Two same roots","x=",x1)  
  
#拜託幫幫忙
 
 
 

ok

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

簡單