#include<stdio.h>
#include<math.h>
int main(void)
{
double a,b,c,d,x1,x2,x;
scanf("%lf %lf %lf",&a,&b,&c);
d=b*b-4*a*c;
if(a==0&&b==0&&c==0)
printf("Zero Equation");
else if(a==0&&b==0&&c!=0)
printf("Not An Equation");
else if(d>0)
{
x1=(-b+sqrt(d))/(2*a);
x2=(-b-sqrt(d))/(2*a);
if(x1>x2)
printf("%.2lf\n%.2lf",x1,x2);
else
printf("%.2lf\n%.2lf",x2,x1);
}
else if(d==0)
{
x=b/(2*a);
printf("%.2lf",x);
}
else if(d<0)
{
x1=(-b+sqrt(d))/(2*a);
x2=(-b-sqrt(d))/(2*a);
printf("0.0+%.2lfi\n0.0-%.2lfi",x1,x2);
}
return 0;
}
剩下的还是不会