#35439: 求救已經做80%但找不到錯


w0922538986@gmail.com (00 0)


a,b,c=map(int,input().split())
x1=(-b+(b*b-4*a*c)**0.5)/2*a
x2=(-b-(b*b-4*a*c)**0.5)/2*a
if (b**2-4*a*c)**1/2 ==0:
 print('Two same roots x='+str(round(x2)))
elif (b**2-4*a*c)**1/2>0:
  print('Two different roots','x1='+str(round(x1)),',','x2='+str(round(x2)))
else:
 print('No real root')
#35454: Re: 求救已經做80%但找不到錯


alex950301 (alex0301)


1. 題目看清楚, "PS: 答案均為整數,若有兩個根則大者在前"

2. "x1=(-b+(b*b-4*a*c)**0.5)/2*a"   !=   "x1=(-b+(b*b-4*a*c)**0.5)/(2*a)"