semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
int main()
{
	int n,i;
	double a,b,c,x1,x2,x,y;
	cin>>n;
	for(i=1;i<=n;i++)
	{ cin>>a>>b>>c;
	  float m;
	  m=b*b-4*a*c;
	  if(m==0)
	  {   x=-b/(2*a);
	      cout<<fixed<<setprecision(5)<<"x1=x2="<<x<<endl;
	  }
	  else
	  {   if (m>0)
		  {x1=(-b+sqrt(m))/(2*a);
	       x2=(-b-sqrt(m))/(2*a);
	       cout<<fixed<<setprecision(5)<<"x1="<<x1<<";"<<"x2="<<x2<<endl;
	      }
	      else
	      {if(b==0){x=b/(2*a);
	       y=sqrt(-m)/(2*a);
	       cout<<fixed<<setprecision(5)<<"x1="<<x<<"+"<<y<<"i;x2="<<x<<"-"<<y<<"i"<<endl;
	      }
	      else{x=-b/(2*a);
	       y=sqrt(-m)/(2*a);
	       cout<<fixed<<setprecision(5)<<"x1="<<x<<"+"<<y<<"i;x2="<<x<<"-"<<y<<"i"<<endl;
	      }
	  }
	}
	}
	return 0;}
main()
{
 int n,i;
 float a,b,c;
 double  x1,x2;
 scanf("%d",&n);
 for(i=1;i<=n;i++)
    {
     scanf("%f %f %f ",&a,&b,&c);
     if(b*b-4*a*c>0)
       {
        x1=(double )(0-b+sqrt(b*b-4*a*c))/(2*a);
        x2=(double )(0-b-sqrt(b*b-4*a*c))/(2*a);
        printf("x1=%.5lf;x2=%.5lf\n",x1,x2);
       }
     if(b*b-4*a*c==0)
       {
        x1=x2=(double )(0-b)/(2*a);
        printf("x1=x2=%.5lf\n",x1);
       }
     if(b*b-4*a*c<0)
       {
        x1=(double )(sqrt(4*a*c-b*b))/(2*a);
        x2=(double )(0-b)/(2*a);
        printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",x2,x1,x2,x1);
       }
    }
}
int main()
{
	int n,i;
	double a,b,c;
	double s,t,m,k,u;
	scanf("%d",&n);
	for(i=1;i<=n;i++)
	{scanf("%lf%lf%lf",&a,&b,&c);
	 if(b*b-4*a*c>0)

	 {s=-(b/(2*a))+sqrt(b*b-4*a*c)/(2*a);
	t=-(b/(2*a))-sqrt(b*b-4*a*c)/(2*a);
	printf("x1=%.5lf;x2=%.5lf\n",s,t);
	 }

	else if(b*b-4*a*c==0)
	{
		k=(-b)/(2*a);
	printf("x1=x2=%.5lf\n",k);
	}
	else 
	{m=-b/(2*a);

	u=sqrt(-(b*b-4*a*c))/(2*a);
	printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",m,u,m,u);}
	}








	return 0;
}
int main()
{
	int n,i;
	double a,b,c,d,m,k;
	scanf("%d",&n);
	for(i=1;i<=n;i++)
	{
		scanf("%lf%lf%lf",&a,&b,&c);
		d=b*b-4*a*c;
		if(d==0)
		{
			m=-b/2/a;
			printf("x1=x2=%.5lf\n",m);
		}
		else if(d>0)
		{
			m = (-b + sqrt(b*b-4*a*c))/(2*a);
			k = (-b - sqrt(b*b-4*a*c))/(2*a);
			printf("x1=%.5lf;x2=%.5lf\n",m,k);
		}
		else
		{
			m=-b/2/a;
			k=sqrt(-d)/2/a;
			if(m==0)m=0;
			printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",m,k,m,k);
		}
	}
	return 0;
}
int main()
{
double a,b,c;
double x1,x2,delta;
double root;
int n,i;

scanf("%d",&n);
for(i=1;i<=n;i++)
{
   scanf("%lf %lf %lf",&a,&b,&c);
   delta=b*b-4*a*c;
   if(delta<0)
   {
		delta=-delta;
		root=(-b)/(2*a);
		if(root==0) root=-root;
		printf("x1=%.5f",root);
		printf("+");
		printf("%.5f",sqrt(delta)/(2*a));
		printf("i");
		printf(";");
		printf("x2=%.5f",root);
		printf("-");
		printf("%.5f",sqrt(delta)/(2*a));
		printf("i");
		printf("\n");
   }
   else
   {
      x1=(-b+sqrt(delta))/(2*a);
	  x2=(-b-sqrt(delta))/(2*a);
	  if(x1==x2)
	  {
	    printf("x1=x2=%.5f",x1);
		printf("\n");
	  }
	  else
	  {
	    printf("x1=%.5f",x1);
		printf(";");
		printf("x2=%.5f",x2);
		printf("\n");
	  }
   
   }


}


return 0;
}
int main()
{
	float a,b,c,d,p,q;
	double x1,x2;
	int i,n,k;
	scanf("%d",&n);
	for (i=1;i<=n;++i)
	{
		scanf("%f%f%f",&a,&b,&c);
		d=sqrt(b*b-4*a*c);
		if(d>0)
		{
			x1 = (-b + d)/(2*a);
			x2 = (-b - d)/(2*a);
			printf("x1=%.5f;x2=%.5f\n",x1,x2);
		}
		else if(d==0)
		{
			x1 = (-b + d)/(2*a);
			printf("x1=x2=%.5f\n",x1);
		}
		else
		{
			d=sqrt(4*a*c-b*b);
			if(b==0)
			{
				x1=b/(2*a);
				x2=b/(2*a);
				p=d/(2*a);
			printf("x1=%.5f+%.5fi;x2=%.5f-%.5fi\n",x1,p,x2,p);
			}
			else
			{
				x1=(-b)/(2*a);
				x2=(-b)/(2*a);
				p=d/(2*a);
			printf("x1=%.5f+%.5fi;x2=%.5f-%.5fi\n",x1,p,x2,p);
			}

		}
		

	}
	scanf("%d",&k);
		return(0);
}
int main()
{
	int n,i;
	double u[100],s[100],delta[100],x1[100],x2[100],a[100],b[100],c[100];
	scanf("%d",&n);
	for (i=0;i<n;i++)
	{
		scanf("%lf%lf%lf",&a[i],&b[i],&c[i]);
	}
	for (i=0;i<n;i++)
	{
		delta[i]=pow(b[i],2)-4*a[i]*c[i];
		if(delta[i]>0)
		{
			x1[i]=((0-b[i])+sqrt(delta[i]))/(2*a[i]);
			x2[i]=((0-b[i])-sqrt(delta[i]))/(2*a[i]);
			printf("x1=%.5lf;x2=%.5lf\n",x1[i],x2[i]);
		}
		else if(delta[i]==0)
		{
			x1[i]=(0-b[i])/(2*a[i]);
			printf("x1=x2=%.5lf\n",x1[i]);
		}
		else if(delta[i]<0)
		{
			u[i]=(0-b[i])/(2*a[i]);
			s[i]=sqrt(0-delta[i])/(2*a[i]);
			printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",u[i],s[i],u[i],s[i]);
		}
	}
	return 0;
}
int main()
{
	int n;
	cin>>n;
	double a,b,c;
	for(int i=1;i<=n;i++)
	{
		cin>>a>>b>>c;
		double d=b*b-4*a*c;
		if(d>0)
		{
			double x1=(-b + sqrt(d))/(2*a);
			double x2=(-b - sqrt(d))/(2*a);
			cout<<fixed<<setprecision(5)<<"x1="<<x1<<";"<<"x2="<<x2<<endl;
		}
		if(d==0)
		{
                             double x=(-b)/(2*a);
			cout<<"x1=x2="<<fixed<<setprecision(5)<<x<<endl;
		}
		if(d<0)
		{
			double m;
                             if(b==0)m=0;
                             if(b!=0)m=(-b)/(2*a);
                             double n=(sqrt(-d))/(2*a);
			cout<<fixed<<setprecision(5)<<"x1="<<m<<"+"<<n<<"i;x2="<<m<<"-"<<n<<"i"<<endl;
		}
	}
	return 0;
}
int main(int argc, char *argv[])
{
  double a[100][3],delta,x1,x2,real1,real2,imz1,imz2;
  int n,i,j;
  scanf("%d",&n);
  for (i=0;i<=n-1;i++)
  {
      for (j=0;j<=2;j++)
      {
          scanf("%lf",&a[i][j]);
      }
      delta=a[i][1]*a[i][1]-4*a[i][0]*a[i][2];
      if (delta>0)
      {x1=((-1)*a[i][1]+sqrt(delta))/(2*a[i][0]);
      x2=((-1)*a[i][1]-sqrt(delta))/(2*a[i][0]);
      printf("x1=%.5lf;x2=%.5lf\n",x1,x2);}
      else if (fabs(delta)<1e-5)
      {x1=((-1)*a[i][1])/(2*a[i][0]);
      printf("x1=x2=%.5lf\n",x1);}
      else
      {real1=(-1)*a[i][1]/(2*a[i][0]);
      imz1=sqrt((-1)*delta)/(2*a[i][0]);
      real2=(-1)*a[i][1]/(2*a[i][0]);
      imz2=sqrt((-1)*delta)/(2*a[i][0]);
      if (fabs(real1)<1e-5)
      real1=fabs(real1);
      if (fabs(real2)<1e-5)
      real2=fabs(real2);
      printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",real1,imz1,real2,imz2);}
  }
  	
  return 0;
}
void main()
{
	int i,n;
	double a,b,c;
	double d,x1,x2;
	scanf("%d",&n);
	for (i=0;i<n;i++)
	{
		scanf("%lf %lf %lf",&a,&b,&c);
		d=b*b-4*a*c;

		if (d>0)
		{
			x1=(-b+sqrt(d))/(2*a);
			x2=(-b-sqrt(d))/(2*a);
			printf("x1=%.5lf;x2=%.5lf\n",x1,x2);
		}
		if (d==0)
		{
			x1=-b/(2*a);
			printf("x1=x2=%.5lf\n",x1);
		}
		if (d<0)
		{
			double t;
			t=sqrt(-d);
			printf("x1=-%.5lf+%.5lfi;x2=-%.5lf-%.5lfi\n",b/(2*a),t/(2*a),b/(2*a),t/(2*a));
		}
	}
}
int main()
{
	int n, i;
	double a, b, c, dt;
	scanf("%d", &n);
	for(i=0;i<n;i++)
	{
		scanf("%lf%lf%lf", &a, &b, &c);
		dt=b*b-4*a*c;
		if(dt>0)
		{
			printf("x1=%.5f;x2=%.5f\n", (-b+sqrt(dt))/(2*a), (-b-sqrt(dt))/(2*a));
		}
		else if(dt==0)
		{
			if(b==0)
			{
				printf("x1=x2=0\n");
			}
			else
			{
				printf("x1=x2=%.5f\n", -b/(2*a));
			}
		}
		else
		{
			dt=-dt;
			printf("x1=%.5f+%.5fi;x2=%.5f-%.5fi\n", -b/(2*a), sqrt(dt)/(2*a), -b/(2*a), sqrt(dt)/(2*a));
		}
	}
	return 0;
}
//****************************************
//*?? ?????????                  **
//*?????? 1100013020       **
//*???2011.9.23                          **
//****************************************



int main()
{
	int i,n,j;
	double a[100],b[100],c[100],x1[100],x2[100],k[100],l[100],p[100];     //???????????
	i=1;
	j=1;
	cin>>n;
	for (;i<=n;)
	{
		cin>>a[i]>>b[i]>>c[i];
		if (b[i]*b[i]-4*a[i]*c[i]>=0)
		{
			x1[i]=(-b[i]+sqrt(b[i]*b[i]-4*a[i]*c[i]))/(2*a[i]);
			x2[i]=(-b[i]-sqrt(b[i]*b[i]-4*a[i]*c[i]))/(2*a[i]);
			if (x1[i]<0 || x1[i]>0)
				x1[i]=x1[i];
			else
				x1[i]=0.00000;
			if (x2[i]<0 || x2[i]>0)
				x2[i]=x2[i];
			else
				x2[i]=0.00000;

		}
		else
		{
			k[i]=-b[i]/(2*a[i]);
			l[i]=sqrt(4*a[i]*c[i]-b[i]*b[i])/(2*a[i]);
			p[i]=i;
			if (k[i]<0 || k[i]>0)
				k[i]=k[i];
			else
				k[i]=0.00000;
			if (l[i]<0 || l[i]>0)
				l[i]=l[i];
			else
				l[i]=0.00000;
		}
		i=i+1;
	}
	i=1;
	for (;i<=n;)
	{
		if (i<p[i] || i>p[i])
		{
			if (x1[i]<x2[i]||x1[i]>x2[i])
			{
				cout<<fixed<<setprecision(5)<<"x1="<<x1[i]<<";x2="<<x2[i]<<endl;
			}
			else
			{
				cout<<fixed<<setprecision(5)<<"x1=x2="<<x1[i]<<endl;
			}
		}
		else
		{
			cout<<fixed<<setprecision(5)<<"x1="<<k[i]<<"+"<<l[i]<<"i"<<";x2="<<k[i]<<"-"<<l[i]<<"i"<<endl;
			j=j+1;
		}
		i=i+1;
	}
	return 0;
}
int main()
{
	int x,n;
	double a,b,c,x1,x2,disc,p,q;
	double w[99][3];

	scanf("%d\n",&n);
	for(x=0;x<n;x++)
	{
		scanf("%lf %lf %lf\n",&a,&b,&c);
		w[x][0]=a;
		w[x][1]=b;
		w[x][2]=c;
	}
	for(x=0;x<n;x++)
	{
		a=w[x][0];
		b=w[x][1];
		c=w[x][2];
		disc=b*b-4*a*c;
		if(fabs(disc)<1e-6)
			printf("x1=x2=%.5f\n",-b/2/a);
		else
		    if(disc>1e-6)
			{
				x1=(-b+sqrt(disc))/2/a;
				x2=(-b-sqrt(disc))/2/a;
				printf("x1=%.5f;x2=%.5f\n",x1,x2);
			}
		    if(disc<-(1e-6))
			{
				p=-b/2/a;
				q=sqrt(-disc)/2/a;
				if(fabs(b)<1e-6) p=fabs(p);
                printf("x1=%.5f+%.5fi;x2=%.5f-%.5fi\n",p,q,p,q);
			}
	}
}
int main(){
	int n;
	scanf("%d",&n);
	int i;
	for(i=0;i<n;i++){
		float a,b,c;
		scanf("%f %f %f",&a,&b,&c);
        if(b*b-4*a*c>=0){
			if((-b+sqrt(b*b-4*a*c))/(2*a)==(-b-sqrt(b*b-4*a*c))/(2*a)){
				printf("x1=x2=%.5lf\n",(-b+sqrt(b*b-4*a*c))/(2*a));
			}
			else {printf("x1=%.5lf;x2=%.5lf\n",(-b+sqrt(b*b-4*a*c))/(2*a),(-b-sqrt(b*b-4*a*c))/(2*a));
			}
		}
		else{
			if(b==0)b=-b;
		printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",-b/(2*a),sqrt(-b*b+4*a*c)/(2*a),-b/(2*a),sqrt(-b*b+4*a*c)/(2*a));
		}
	}
		return 0;
}
int main()
{
    int n;
	double a,b,c,x1,x2,r1,r2,i1;
	cin>>n;
	while(n--)
	{
		cin>>a>>b>>c;
		if(b*b-4*a*c>0)
		{
			r1=(-b + sqrt(b*b-4*a*c))/(2*a);
		    r2=(-b - sqrt(b*b-4*a*c))/(2*a);
			x1=r1>r2?r1:r2;
			x2=r1<r2?r1:r2;
			cout<<fixed<<setprecision(5)<<"x1="<<x1<<";x2="<<x2<<endl;
		}
		else if(b*b-4*a*c<0)
		{
			i1=sqrt(-b*b+4*a*c)/(2*a);
			cout<<fixed<<setprecision(5)<<"x1="<<-b/(2*a)<<"+"<<fabs(i1)
				<<"i;x2="<<-b/(2*a)<<"-"<<fabs(i1)<<"i"<<endl;
        }
		else 
		{
            x1=-b/(2*a);
            cout<<fixed<<setprecision(5)<<"x1=x2="<<x1<<endl;
		}
	}
	return 0;
}
main()
{
int n,i;
double a,b,c,x1,x2;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%lf %lf %lf",&a,&b,&c);
if ((b*b-4*a*c)>0)
{x1 = (-b + sqrt(b*b-4*a*c))/(2*a) ;
x2 = (-b - sqrt(b*b-4*a*c))/(2*a);
printf("x1=%.5lf;x2=%.5lf\n",x1,x2);}
else if ((b*b-4*a*c)==0)
{x1=x2=(-b + sqrt(b*b-4*a*c))/(2*a); 
printf("x1=x2=%.5lf\n",x1);}
else if ((b*b-4*a*c)<0)
printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",0-b/(2*a),sqrt(4*a*c-b*b)/(2*a),0-b/(2*a),sqrt(4*a*c-b*b)/(2*a));



}
}
int main()
{
	int n,i;
	double a,b,c,x1,x2,d,r;
	cin >>n;
	for (i=1;i<=n;i++)
	{
		cin >>a>>b>>c;
		d=b*b-4*a*c;
		if (d>0)
		{
			x1=(-b+sqrt(d))/(2*a);
			x2=(-b-sqrt(d))/(2*a);
			cout <<"x1=";
			printf("%.5f",x1);
			cout <<";x2=";
			printf("%.5f",x2);
			cout <<endl;
		}
		else if (d<0)
		{
			r=-b/(2*a);
			d=abs(d);
			x1=sqrt(d)/(2*a);
			cout <<"x1=";
			if (r==0)
				cout <<"0.00000";
			else
			    printf("%.5f",r);
			cout <<"+";
			printf("%.5f",x1);
            cout <<"i;x2=";
			if (r==0)
				cout <<"0.00000";
			else
			    printf("%.5f",r);
			cout <<"-";
			printf("%.5f",x1);
			cout <<"i"<<endl;
		}
		else
		{
			x1=-b/(2*a);
			cout <<"x1=x2=";
			printf("%.5f",x1);
			cout <<endl;
		}
	}

	return 0;
}
main()
{int n,m;
double p,q,t,x1,x2;
float b[1005],a[1005];

scanf("%d",&n);

for (m=0;m<3*n;m=m+3)
   {
   scanf("%f %f %f",&b[m],&b[m+1],&b[m+2]);
   a[m]=b[m];
   a[m+1]=b[m+1];
   a[m+2]=b[m+2];
   }
for(m=0;m<=3*n-1;m=m+3)
   {
   t=a[m+1]*a[m+1]-4*a[m]*a[m+2];
if (t>=0)
       
if(t==0)
   {
       p=-1*a[m+1]/(2*a[m]);
       if(p==-0.0) p=0.0;
       printf("x1=x2=%.5lf\n",p);
   } 
else {p=-1*a[m+1]/(2*a[m]);
       q=sqrt(t)/(2*a[m]);
       x1=p+q;
       x2=p-q;
       if(x1==-0.0) x1=0.0;
       if(x2==-0.0) x2=0.0;
       printf("x1=%.5lf;x2=%.5lf\n",x1,x2);
   }
else
   {
       p=-1*a[m+1]/(2*a[m]);
       q=sqrt(-t)/(2*a[m]);
        if(p==-0.0) p=0.0;
        if(q==-0.0) q=0.0;
       printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",p,q,p,q);
   } 
   }      
       
   }
int main()
{
    int n,i;
    double a[100],b[100],c[100], det,t,x,y;
    scanf("%d",&n);
    
    for(i=1;i<=n;i++)
    {
        scanf("%lf %lf %lf",&a[i-1],&b[i-1],&c[i-1]);
    }
    
    for(i=1;i<=n;i++)
    {
        det=b[i-1]*b[i-1]-4*a[i-1]*c[i-1];
        t=-b[i-1]/(2*a[i-1]);
        x=sqrt(det)/(2*a[i-1]);
        y=sqrt(-det)/(2*a[i-1]);
        if(det<0)
          {
                 if(t!=0)
           printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",t,y,t,y);
           else printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",-t,y,-t,y);
           }
        else if(det>0)
           printf("x1=%.5lf;x2=%.5lf\n",x+t,t-x);
        else 
           printf("x1=x2=%.5lf\n",t);
    }
}
double dt(double a,double b,double c)
{
	return(b*b-4*a*c);
}
double ba(double a,double b)
{
	return(-b/(2*a));
}
double gdt(double a,double dtt)
{
	return(sqrt(dtt)/(2*a));
}
double yu(double a,double b,double c)
{
	return(sqrt(fabs(-dt(a,b,c)/(4*a))));
}
void main()
{
	int n;
	double a,b,c;
	scanf("%d",&n);
	int i;
	double d;
	for(i=0;i<n;i++)
	{
		scanf("%lf%lf%lf",&a,&b,&c);
		if(ba(a,b)<1e-25&&ba(a,b)>-1e-25)
			d=0.0;
		else
			d=ba(a,b);
		if(dt(a,b,c)==0)
			printf("x1=x2=%.5lf\n",d);
		else if(dt(a,b,c)>0)
			printf("x1=%.5lf;x2=%.5lf\n",d+gdt(a,dt(a,b,c)),d-gdt(a,dt(a,b,c)));
		else if(dt(a,b,c)<0)
			printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",d,yu(a,b,c)/sqrt(a),d,yu(a,b,c)/sqrt(a));
	}
}
int main ()
{
	int n,i;
	float a,b,c;
	double x1,x2;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%f %f %f",&a,&b,&c);
		if((b*b-4*a*c)>0)
		{
			x1=((-1)*b+sqrt(b*b-4*a*c))/(2*a);
			x2=((-1)*b-sqrt(b*b-4*a*c))/(2*a);
			printf("x1=%.5f;x2=%.5f\n",x1,x2);
		}
		if((b*b-4*a*c)==0)
		{
			x1=((-1)*b+sqrt(b*b-4*a*c))/(2*a);
			x2=((-1)*b-sqrt(b*b-4*a*c))/(2*a);
			printf("x1=x2=%.5f\n",x1);
		}
		if((b*b-4*a*c)<0)
		{
			x1=(-1*b)/(2*a);
			x2=sqrt(4*a*c-b*b)/(2*a);
			printf("x1=%.5f+%.5fi;x2=%.5f-%.5fi\n",x1,x2,x1,x2);
		}
	}
	return 0;
}
int main()
{
	double a, b, c,d,g,x1,x2;
	int n,i;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%lf%lf%lf",&a,&b,&c);
			d=(-b)/(2*a) ;
		    g=(sqrt(fabs(4*a*c-b*b)))/(2*a);
		    
	if((b*b-4*a*c)>0)
	{
		x1=d+g;
		x2=d-g;
			printf("x1=%.5lf;",x1);
			printf("x2=%.5lf\n",x2);
	}
    else if((b*b-4*a*c)==0)
	{
			x1=x2=d;
			printf("x1=x2=%.5lf\n",d);
	}
	else if((4*a*c-b*b)>0)
	{
		    printf("x1=%.5lf+%.5lfi;",d,g);
		    printf("x2=%.5lf-%.5lfi\n",d,g);
	}
	}
	return 0;
}
//********************************
//*????????????   **
//*????? 1300012707 **
//*???2013.10.9  **
//********************************
int main()
{
	double a, b, c, r1, r2, x1, x2;
	int n;
    cin >> n;
    for ( int i = 1; i <= n; i = i + 1)
    {
		cin >> a >> b >> c;
		if ( b == 0)
        {
			b = -b;
        }
		if ( ( b * b - 4 * a * c) > 0)
        {
			x1 = ( -b + sqrt(b * b - 4 * a * c)) / ( 2 * a);
			x2 = ( -b - sqrt(b * b - 4 * a * c)) / ( 2 * a);
			cout << "x1=";
			printf("%.5f", x1);
			cout << ";x2=";
			printf("%.5f", x2);
			cout << endl;
        }
		else
        {
			if ( ( b * b - 4 * a * c) < 0)
            {
				r1 = -b / ( 2 * a);
				r2 = sqrt(4 * a * c - b * b) / ( 2 * a);
				cout << "x1=";
				printf("%.5f", r1);
				cout << "+";
				printf("%.5f", r2);
				cout << "i;x2=";
				printf("%.5f", r1);
				cout << "-";
				printf("%.5f", r2);
				cout << "i" << endl;
			}
			else
            {
				r1 = -b / ( 2 * a);
				cout << "x1=x2=";
				printf("%.5f", r1);
				cout << endl;
            }
        }
	}
	return 0;
}
int main()
{
	int n,i;
	double a,b,c,x1,x2,G,y;
	scanf("%d\n",&n);
	for (i=0;i<n;i++)
	{
		scanf("%lf%lf%lf\n",&a,&b,&c);
        G=b*b-4*a*c;
		if (G>0)
		{
			x1=(-b+sqrt(b*b-4*a*c))/(2*a);
			if(x1==0){
				x1=0-x1;
			}
		    x2=(-b-sqrt(b*b-4*a*c))/(2*a);
			if(x2==0){
				x2=0-x2;
			}
			if  (x1==x2) printf("x1=x2=%.5lf\n",x1,x2);
			else printf("x1=%.5lf;x2=%.5lf\n",x1,x2);
		}   
		else
		{ 
		    
		    x1=(-b)/(2*a);
			if(x1==0){
				x1=0-x1;
			}
			y=(-sqrt(-b*b+4*a*c))/(2*a);
		    
			if  (y==0) printf("x1=x2=%.5lf\n",x1,x1);
			else

				printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",x1,-y,x1,-y);
		}
			
    }
	return 0;
}
main()
{
       double x1,x2,a,b,c;
       int n,i;
       scanf("%d",&n);
       for(i=0;i<n;i++)
       {
               scanf("%lf %lf %lf",&a,&b,&c);
                   if(b*b-4*a*c<0)
                   {    if(b==0)
                      { x1=(sqrt(4*a*c-b*b))/(2*a);
                   
                      printf("x1=%.5f+%.5fi;x2=%.5f-%.5fi\n",b,x1,b,x1);}
                        else
                        {
                            printf("x1=%.5f+%.5fi;x2=%.5f-%.5fi\n",-b/(2*a),(sqrt(4*a*c-b*b))/(2*a),-b/(2*a),(sqrt(4*a*c-b*b))/(2*a));
                            }           }
                   else if(sqrt(b*b-4*a*c)==0)
                   {printf("x1=x2=%.5f\n",(-b)/(2*a));}
                   else
                   {x1 = (-b + sqrt(b*b-4*a*c))/(2*a);
                   x2 = (-b - sqrt(b*b-4*a*c))/(2*a);
                   printf("x1=%.5f;x2=%.5f\n",x1,x2);}
             
               }
       }
void main()
{
	int i,n;

	float a[100],b[100],c[100];
	double x1,x2,d;
	scanf ("%d",&n);


	for (i=0;i<=n-1;i++)
	{
		scanf("%f%f%f",&(a[i]),&(b[i]),&(c[i]));
	}
	for (i=0;i<=n-1;i++)
	{
		d=b[i]*b[i]-4*a[i]*c[i];
	
		if (d>0)
		{
			x1=(-b[i])/(2*a[i])+sqrt(b[i]*b[i]-4*a[i]*c[i])/(2*a[i]);
            x2=(-b[i])/(2*a[i])-sqrt(b[i]*b[i]-4*a[i]*c[i])/(2*a[i]);
			printf("x1=%.5f;x2=%.5f\n",x1,x2);
		}
        else if(d==0)

		{
			x1=(-b[i])/(2*a[i]);
			printf("x1=x2=%.5f\n",x1);
		}
		else
		{
			x1=-b[i]/(2*a[i]);
			x2=sqrt(-d)/(2*a[i]);
			printf("x1=%.5f+%.5fi;x2=%.5f-%.5fi\n",x1,x2,x1,x2);
		}
	}
}
int main(){
	int n;
	float a,b,c;
	double x1,x2,m;
	scanf("%d\n",&n);
    for(int i=0;i<n;i++)
	{
	  scanf("%f%f%f",&a,&b,&c);
	  if(b*b-4*a*c>0)
	  {   
		  x1=(-b+sqrt(b*b-4*a*c))/(2*a);
		  x2=(-sqrt(b*b-4*a*c)-b)/(2*a);
	      printf("x1=%.5f;x2=%.5f\n",x1,x2);
	  }
	  else if(b*b-4*a*c==0)
	  {
	  if(b==0){x1=x2=0.00000;}
	  else {x1=x2=(-b)/(2*a);}
	  printf("x1=x2=%.5f\n",x1);
	  }
	  else if(b*b-4*a*c<0)
	  {
	  if(b==0) {x1=x2=b/(2*a);m=sqrt(-b*b+4*a*c)/(2*a);}
	  else {x1=x2=(-b)/(2*a);m=sqrt(-b*b+4*a*c)/(2*a);}
	  printf("x1=%.5f+%.5fi;x2=%.5f-%.5fi\n",x1,m,x2,m);
	  }
	}
	return 0;
}
int main()
{
    int n,i;
    double a,b,c;
    double x1[100],x2[100],s1[100],s2[100];
    scanf("%d",&n);
    for(i=1;i<=n;i++)
	{
         scanf("%lf%lf%lf",&a,&b,&c);
		 if( (b*b-4*a*c)==0 )
		 {
			 x1[i]=x2[i]=(-b)/(2*a);
			 s2[i]=0.0;
		 }
		 else if( (b*b-4*a*c)>0 )
		 {
			 x1[i]=(-b+sqrt(b*b-4*a*c))/(2*a);
             x2[i]=(-b-sqrt(b*b-4*a*c))/(2*a);
			 s2[i]=0.0;
		 }
         else if( (b*b-4*a*c)<0 )
		 {
			 s1[i]=(-b)/(2*a);
			 if(s1[i]==-0.0)
				 s1[i]=0.0;
			 s2[i]=sqrt(4*a*c-b*b)/(2*a);
		 }
	}
    for(i=1;i<=n;i++)
	{
        if(x1[i]==x2[i]&&s2[i]==0)
			printf("x1=x2=%.5f\n",x1[i]);
       	else if(x1[i]!=x2[i]&&s2[i]==0)
			printf("x1=%.5f;x2=%.5f\n",x1[i],x2[i]);
        else 
			printf("x1=%.5f+%.5fi;x2=%.5f-%.5fi\n",s1[i],s2[i],s1[i],s2[i]);
                          
	}

return 0;
}
int main()
{
	int j=1,n,i;
	float a,b,c;
	double x1,x2,t,p,q;
	cin>>n;
	while(j<=n)
	{
		cin>>a>>b>>c;
		t=b*b-4*a*c;
		if(t>0)
		{
			x1=(0-b+sqrt(t))/(2*a);
			x2=(0-b-sqrt(t))/(2*a);
			//cout<<"x1="<<printf("%.5f", x1)<<";"<<"x2="<<printf("%.5f", x2)<<endl;
			printf("x1=%.5lf;x2=%.5lf\n",x1,x2);
		}
		if(t==0)
		{
			x1=(0-b)/(2*a);
			//cout<<"x1=x2="<<printf("%.5f", x1)<<endl;
			printf("x1=x2=%.5lf\n", x1);
		}
		if(t<0)
		{
			p=(0-b)/(2*a);
			q=sqrt(-1*t)/(2*a);
			//cout<<"x1="<<printf("%.5f", x1)<<";"<<"x2="<<printf("%.5f", x2)<<endl;
			printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",p,q,p,q);
		}
		j++;
	}
	return 0;
}
int main()
{
	int n, i;
	scanf("%d", &n);
	double a, b, c, x1, x2, p;
	for(i=1;i<=n;i++){
		scanf("%lf %lf %lf", &a, &b, &c);
		p=b*b-4*a*c;
		if(p>0){
			x1=(-b+sqrt(p))/(2*a);
            x2=(-b-sqrt(p))/(2*a);
			printf("x1=%.5lf;x2=%.5lf\n", x1, x2);
		}
		else if(p==0){
			printf("x1=x2=%.5lf\n", -b/(2*a));
		}
		else{
			printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n", -b/(2*a), sqrt(-p)/(2*a), -b/(2*a), sqrt(-p)/(2*a));
		}
	}
}
int main()
{
	int n,i;
	double a[100],b[100],c[100];
	double x1[100],x2[100];
	double s[100],t[100];
	scanf("%d",&n);
	for (i=0;i<n;i++)
	{
		scanf("%lf%lf%lf",&a[i],&b[i],&c[i]);
		if (b[i]*b[i]-4*a[i]*c[i]>0)
		{
			x1[i]=(-b[i] + sqrt(b[i]*b[i]-4*a[i]*c[i]))/(2*a[i]);
			x2[i]=(-b[i] - sqrt(b[i]*b[i]-4*a[i]*c[i]))/(2*a[i]);
			
		}
		if (b[i]*b[i]-4*a[i]*c[i]==0)
		{
			x1[i]=x2[i]=(-b[i])/(2*a[i]);
			
		}
		if (b[i]*b[i]-4*a[i]*c[i]<0)
		{
			s[i]=-b[i]/(2*a[i]);
			t[i]=(sqrt(-(b[i]*b[i]-4*a[i]*c[i])))/(2*a[i]);
			
		}
	}
	for (i=0;i<n;i++)
	{
		if (b[i]*b[i]-4*a[i]*c[i]>0)	
			printf("x1=%.5lf;x2=%.5lf\n",x1[i],x2[i]);
		if (b[i]*b[i]-4*a[i]*c[i]==0)
			printf("x1=x2=%.5lf\n",x1[i]);
		if (b[i]*b[i]-4*a[i]*c[i]<0)
			printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",s[i],t[i],s[i],t[i]);
	}
	return 0;
}
int main(int argc, char* argv[])
{
	int n;
	scanf("%d/n",&n);
	double a=0,b=0,c=0;
	for(;n>0;n--){
		scanf("%lf %lf %lf",&a,&b,&c);
	
   double x1 = (-b + sqrt(b*b-4*a*c))/(2*a); 
   double x2 = (-b - sqrt(b*b-4*a*c))/(2*a);
   if((b*b-4*a*c)>0){  
	   printf("x1=%.5f;x2=%.5f\n",x1,x2);}
    else if((b*b-4*a*c)==0){
	   printf("x1=x2=%.5f\n",x2);}
   else if((b*b-4*a*c)<0){

	   if(b!=0){
	   double c1,d1,d2;
		   c1=(-b/(a*2.0));
		   d1=sqrt(4*a*c-b*b)/(2*a);
		   d2=-d1;
		  printf("x1=%.5lf+%.5lfi;x2=%.5lf%.5lfi\n",c1,d1,c1,d2);
   }
    else if(b==0){
	double c2,d3,d4;
	c2=0;
	d3=sqrt(4*a*c-b*b)/(2*a);
		   d4=-d3;
	printf("x1=%.5lf+%.5lfi;x2=%.5lf%.5lfi\n",c2,d3,c2,d4);
	}
	}
};
	   return 0;

}
int main(int argc, char *argv[])
{
   int n,i;
    double a[100],b[100],c[100];
    scanf("%d",&n);
    for(i=0;i<n;i++)
   {
     scanf("%lf %lf %lf",&a[i],&b[i],&c[i]);
    }
   for(i=0;i<n;i++)
   {
     if(a[i]!=0)
     {
       double delta,m,n,x1,x2;
       delta=b[i]*b[i]-4*a[i]*c[i];
        if(b[i]==0)
             m=0;
        else
		m=-(b[i]/(2*a[i]));
		n=sqrt(fabs(delta))/(2*a[i]);
        if(delta==0)
        {
          printf("x1=x2=%.5lf\n",m);  
         }
          else if(delta>0)
           {x1=m+n;
            x2=m-n;
            printf("x1=%.5lf;x2=%.5lf\n",x1,x2);  }
         else
         {       
			 m=-fabs(m);
			 printf("x1=%.5lf+%.5lfi;",m,n); 
		     printf("x2=%.5lf-%.5lfi\n",m,n);
		 }
            
	 }
      
   }
   	
	return 0;
}
void main()
{
	int n;
	scanf("%d",&n);
	while (n--)
	{
		double a,b,c,x1,x2,g,h;
		scanf("%lf %lf %lf",&a,&b,&c);
			if(b*b-4*a*c>0)
			{
			x1 = (-b + sqrt(b*b-4*a*c))/(2*a); 
			x2 = (-b - sqrt(b*b-4*a*c))/(2*a); 
			printf("x1=%.5f;x2=%.5f\n",x1,x2);
			}
			else if(b*b-4*a*c==0)
			{
				x1 = (-b)/(2*a);  
			printf("x1=x2=%.5f\n",x1);
			}
			else if(b*b-4*a*c<0)
			{
				g=(-b)/(2*a);
				h=sqrt(4*a*c-b*b)/(2*a);
			printf("x1=%.5f+%.5fi;x2=%.5f-%.5fi\n",g,h,g,h);
			}
	}
}
int main()
{
	double a, b, c,d,e,g,x1,x2;
	int n,i;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%lf%lf%lf",&a,&b,&c);
			d=(-b)/(2*a) ;
		    e=(sqrt(fabs(4*a*c-b*b)))/(2*a);
		    g=(sqrt(fabs(4*a*c-b*b)))/(2*a);
	if((b*b-4*a*c)>0)
	{
		x1=d+e;
		x2=d-g;
			printf("x1=%.5lf;",x1);
			printf("x2=%.5lf\n",x2);
	}
    else if((b*b-4*a*c)==0)
	{
			x1=x2=d;
			printf("x1=x2=%.5lf\n",d);
	}
	else if((4*a*c-b*b)>0)
	{
		    printf("x1=%.5lf+%.5lfi;",d,e);
		    printf("x2=%.5lf-%.5lfi\n",d,g);
	}
	}
	return 0;
}
int main()
{ 
   int i,n;
   double d,p,q,x1,x2,a,b,c;
   scanf("%d",&n);
   for(i=1;i<=n;i++)
   {
   scanf("%lf %lf %lf",&a,&b,&c);
   p=b*b-4*a*c;
   q=(0-b)/(2*a);
   if (p==0)
   {
             x1=q;
             printf("x1=x2=%.5lf\n",x1);
   }
   else 
   {
        if (p>0)
        {
               x1=sqrt(p)/(2*a)+q;
               x2=-sqrt(p)/(2*a)+q;
               printf("x1=%.5lf;x2=%.5lf\n",x1,x2);
        }
        else
        {
            d=sqrt(-p)/(2*a);
            printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",q,d,q,d);
        }
   }
 }
}
int main()
{
	int n,i;
	double a,b,c,m,x1,x2;
	scanf("%d",&n);
	for(i=1;i<=n;i++)
	{
		scanf("%lf %lf %lf",&a,&b,&c);
        m=b*b-4*a*c;
		if(m>0)
		{
			x1=(-b+sqrt(m))/(2*a);
			x2=(-b-sqrt(m))/(2*a);
			printf("x1=%.5lf;x2=%.5lf\n",x1,x2);
		}
		else if(m==0)
		{
			x1=-b/(2*a);
			printf("x1=x2=%.5lf\n",x1);
		}
		else
		{
			x1=-b/(2*a);
			x2=sqrt(-m)/(2*a);
			printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",x1,x2,x1,x2);
		}
	}
	return 0;
}