semeru/Code-Code-CloneDetection-POJ104 huggingface dataset:
//============================================================================
// Name        : fangcheng.cpp
// Author      : 1234
// Version     :
// Copyright   : Your copyright notice
// Description :
//============================================================================


int main()
{
	int n;
	double a,b,c,d,x1,x2;
	cin>>n;
	for(;n>0;n--)
	{
		cin>>a>>b>>c;//??n??

		d=b*b-4*a*c;

	if(d>0)
	   {
		x1=(-b+sqrt(d))/(2*a);//????????x1,x2
	    x2=(-b-sqrt(d))/(2*a);//
	    if(x1==-0)x1=0;
	    cout<<"x1=";
	    cout<<fixed<<setprecision(5)<<x1;
	    if(x2==-0)x2=0;
	    cout<<";x2=";
	    cout<<fixed<<setprecision(5)<<x2<<"\n";

	   }
	else if(d==0)
	     {
		  cout<<"x1=x2=";
		  if(b==0)cout<<0.00000;
	     cout<<fixed<<setprecision(5)<<(-b/(2*a))<<"\n";
		 }
	else
	      {x1=-1*b/(2*a);//??????
	       if(x1==-0) x1=0;
	       x2=sqrt(-d)/(2*a);//??????
	       cout<<"x1=";
	       cout<<fixed<<setprecision(5)<<x1;
	       cout<<"+";
	       cout<<fixed<<setprecision(5)<<x2;
	       cout<<"i"<<';';
	       cout<<"x2=";
	       cout<<fixed<<setprecision(5)<<x1;
	       cout<<"-";
	       cout<<fixed<<setprecision(5)<<x2;
	      cout<<"i"<<"\n";

	      }

	}


}
int main()
{
	int n,i;
	float a[100],b[100],c[100];
	double x1,x2,y,s,z;
	scanf("%d",&n);
	for(i=1;i<=n;i++)
	{
		scanf("%f%f%f",&a[i],&b[i],&c[i]);
	}
	for(i=1;i<=n;i++)
	{
		y=b[i]*b[i]-4*a[i]*c[i];
		if(y>=0.00)
		{
			x1=(-b[i]+sqrt(b[i]*b[i]-4*a[i]*c[i]))/(2*a[i]);
			x2=(-b[i]-sqrt(b[i]*b[i]-4*a[i]*c[i]))/(2*a[i]);
			if(x1==x2)
			{
				printf("x1=x2=%.5f\n",x1);
			}
			else
			{
			printf("x1=%.5f;x2=%.5f\n",x1,x2);
			}
		}
		else
		{
			z=sqrt(-y)/(2*a[i]);
			if(b[i]==0.0)
			{
				printf("x1=0.00000+%.5fi;x2=0.00000-%.5fi\n",z,z);
			}
			else
			{
				s=-b[i]/(2*a[i]);
				printf("x1=%.5f+%.5fi;x2=%.5f-%.5fi\n",s,z,s,z);
			}
		}
	}
	return 0;
}
void jie(float a,float b,float c)
{
     float p,disc,q,x1,x2;
     if (b/(2*a)!=0)
     p=-b/(2*a);
     else
     p=b/(2*a);
     disc=b*b-4*a*c;
      if (disc==0)
      printf("\nx1=x2=%5.5f\n",p);
      else
      if (disc>=0)
      {q=sqrt(disc)/(2*a);
  		x1=p+q;x2=p-q;
        printf("\nx1=%5.5f;x2=%5.5f\n",x1,x2);}
      else
      {q=sqrt(-disc)/(2*a);
      printf("\nx1=%5.5f+%5.5fi;x2=%5.5f-%5.5fi\n",p,q,p,q);}
     }
int main()
{   float *a,*b,*c;
    int n,i;
    scanf ("%d",&n);
    a= (float*)malloc(n*sizeof(float)) ;
    b= (float*)malloc(n*sizeof(float)) ;
    c= (float*)malloc(n*sizeof(float)) ;
    for (i=1;i<=n;i++)
    scanf ("%f %f %f",&a[i],&b[i],&c[i]);
    for (i=1;i<=n;i++)
         jie(a[i],b[i],c[i]);
     return 0;
    }
int main ()
{
   int n;
   double a , b , c , d , x1 , x2 , i;
   scanf ( "%d" , &n );
   for ( ; n > 0 ; n -- )
    {
     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);
       if ( x1 == 0 ) x1 = 0;
       if ( x2 == 0 ) x2 = 0;
       printf ( "x1=%.5lf;x2=%.5lf\n" , x1 , x2 );
      }
      else if ( d == 0 )
       {
        x1 = -b/(2*a);
        if ( x1 == 0 ) x1 = 0;
        printf ( "x1=x2=%.5lf\n" , x1);
       }
      else
       {
        x1 = -b/(2*a);
        x2 = sqrt(-d)/(2*a);
        if ( x1 == 0 ) x1 = 0;
        if ( x2 == 0 ) x2 = 0;
        if ( x2 < 0 ) x2 = -x2;
        printf ( "x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n" , x1 , x2 , x1 , x2);
       }
    }
  // getchar (); getchar ();
   return 0;
}
//****************************************
//*???2013?10?11?                  *
//*??????                          *
//*????????????              *
//****************************************

int main ()

{
	int n, i;                                                            //??????n????i
	double a, b, c, x1, x2, x3, x;                                       //????a?b?c??x1?x2???x3???x
	cin >> n;                                                            //??????n
	for(i=1; i<=n; i++)                                                  //i?1???n
	{
		cin >> a >> b >> c;                                              //????a?b?c
		x1 = (-b + sqrt(b*b-4*a*c))/(2*a);                               //??x1
		x2 = (-b - sqrt(b*b-4*a*c))/(2*a);                               //??x2

		if( (b*b-4*a*c)>=0 )                                             //???????0
		{
			if(x1==x2)                                                   //???????
			{
				cout << fixed;                                           //???????
				cout << setprecision(5) << "x1=x2=" << x1 << endl;       //??5????x1?x2
			}		
			if(x1!=x2)                                                   //???????
			{
				cout << fixed;                                           //???????
				cout << setprecision(5) << "x1=" << x1 << ";" << "x2=" << x2 << endl; //??5????x1?x2
			}			
		}
		else                                                             //???????0
		{
			x3 = (+ sqrt(4*a*c-b*b))/(2*a);                              //????x3
			x = - b/(2*a);                                               //????
			if(x == -0)                                                  //?????-0
			{
				x = - x;                                                 //?????0
			}
			
			cout << fixed;                                               //???????
			cout << setprecision(5) << "x1=" << x << "+" << x3 << "i" << ";" << "x2=" << x << "-" << x3 << "i" << endl;
			//??5????x1?x2
		}
	}
	return 0;
}
main()
{
      int n,i=1;
      double a,b,c,x1,x2,d,f,k;
      scanf("%d",&n);
      while(i<=n)
      {
                 scanf("%lf %lf %lf",&a,&b,&c);
                 f=-b/(2*a);
                 if(b==0)f=0;
                 d=b*b-4*a*c;
                 if(d>0)
                 {
                        x1=f+sqrt(d)/(2*a);
                        x2=f-sqrt(d)/(2*a);
                        printf("x1=%.5f;x2=%.5f\n",x1,x2);
                 }
                 else if(d==0) printf("x1=x2=%.5f\n",f);
                 else
                 {
                        k=sqrt(-d)/(2*a);
                        printf("x1=%.5f+%.5fi;x2=%.5f-%.5fi\n",f,k,f,k);
                 }
                 i++;
      }               
}
int main(){
	int n;        //????
	cin>>n;       //????
	for (int i=0;i<n;i++){   //???? 
		double a,b,c;    //????
		cin>>a>>b>>c;    //????
		double delta=b*b-4*a*c;//???????
		if (delta>0){          //????
			printf("x1=%.5f;x2=%.5f\n",(-b+sqrt(delta))/(a*2),(-b-sqrt(delta))/(a*2));
		}
		if (delta==0){
			printf("x1=x2=%.5f\n",(-b)/(a*2));
		}
		if (delta<0){
			printf("x1=%.5f+%.5fi;x2=%.5f-%.5fi\n",(-b)/(a*2)+1.0-1.0,sqrt(-delta)/(a*2),(-b)/(a*2)+1.0-1.0,sqrt(-delta)/(a*2));
		}
	}
	return 0;   //???????????????????
}
int main(int argc, char* argv[])
{
	int n,i;
	scanf("%d",&n);
	double a,b,c;
	double x1,x2,shb;
	for(i=0;i<n;i++){
		scanf("%lf%lf%lf",&a,&b,&c);
		if(b*b-4*a*c<0){
			if(b==0){shb=0.00000;}
			else {shb=(-b)/(2*a);}
		 	x1=sqrt(4*a*c-b*b)/(2*a);
            x2=-sqrt(4*a*c-b*b)/(2*a);
 		    printf("x1=%.5f+%.5fi;x2=%.5f%.5fi\n",shb,x1,shb,x2);
		}
		else{
			x1=(-b+sqrt(b*b-4*a*c))/(2*a);
            x2=(-b-sqrt(b*b-4*a*c))/(2*a);
			if(x1==x2)printf("x1=x2=%.5f\n",x1);
		    else printf("x1=%.5f;x2=%.5f\n",x1,x2);
		}

	}
 	return 0;
}
int main()
{
	int n,i,k;
    double a,b,c,A,B;
	double x1,x2,x;
	scanf("%d",&n);
	for (k=0;k<n;k++)
	{
		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);	
		}				
	    if ((b*b-4*a*c)==0)
		{
            x=-b/(2*a);
			printf("x1=x2=%.5lf\n",x);			
		 }		
		if ((b*b-4*a*c)<0)
		{
			if(b==0)
			{	A=0.00000;
                B =sqrt(4*a*c-(b*b))/(2*a);
                printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",A,B,A,B);
			}
				else
				{
		        A =-b/(2*a);
			    B =sqrt(4*a*c-(b*b))/(2*a);
			      printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",A,B,A,B);
				}
		}
	}
	return 0;
}
/****************
??cpp1
???
2013/10/10
??(8.3) ????????? (1051)
***************/
int main()
{
	int i, n;
	double a, b, c, d, x1, x2;
	cin >> n;
	for (i = 1; i <= n; i++)//?1?n????
	{
		cin >> a >> b >> c;
		d = b * b - 4 * a *c;// ????
		if (d == 0)//????????
		{
			x1 = -b / (2*a);
		    cout << setprecision(5) << fixed << "x1=x2="<<x1 << endl;
		}
		else if ( d > 0)//?????????
		{
			x1 = (-b + sqrt(b*b-4*a*c))/(2*a);
            x2 = (-b - sqrt(b*b-4*a*c))/(2*a);
			cout << setprecision(5) << fixed << "x1=" << x1 << ";" << "x2=" << x2 <<endl;
		}
		else //?????????
		{
			if ( b == 0 )
			{
				cout << setprecision(5) << fixed << "x1=" << ( b / (2 * a)) << "+" << sqrt(4*a*c-b*b)/(2*a)<< "i;x2=" << (b / (2 * a)) << "-" << sqrt(4*a*c-b*b) / (2*a) << "i"<< endl;
			}
			else
			cout << setprecision(5) << fixed << "x1=" << ( -b / (2 * a)) << "+" << sqrt(4*a*c-b*b)/(2*a)<< "i;x2=" << (-b / (2 * a)) << "-" << sqrt(4*a*c-b*b) / (2*a) << "i"<< endl;
		}
	}
    return 0;
}
/*
 * ?????????.cpp
 *?????????
 *  Created on: 2012-10-12
 *      Author: ???
 */
int main()
{
 int n,i;
 float a,b,c;
 double d,e,f,x1,x2;  //????
 cin>>n;              //?????????
 for(i=n;i>=1;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<<fixed<<setprecision(5)<<"x1="<<x1+1e-9<<';'<<"x2="<<x2+1e-9<<endl;
 }
 if(d==0)             //??????
 {
      x1=-b/(2*a);
      cout<<fixed<<setprecision(5)<<"x1=x2="<<x1+1e-9<<endl;  //x1??x2
 }
 if(d<0)             //??????
 {
        e=(sqrt(-d))/(2*a);
        f=-b/(2*a);
        if(f<0&&f>-0.000001)
        {f=0;}
        cout<<fixed<<setprecision(5)<<"x1="<<f+1e-9<<"+"<<e+1e-9<<"i"<<";"<<"x2="<<f+1e-9<<-e+1e-9<<"i"<<endl;
 }
 }
 return 0;
}                        //????
int main()
{
	int n,i;
	double a[100],b[100],c[100],x1[100],x2[100],y1[100],y2[100],d[100];
	cin>>n;
	for(i=0;i<n;i++)
	{
		cin>>a[i] >>b[i] >>c[i];
		d[i]=b[i]*b[i]-4*a[i]*c[i];
	}
	for(i=0;i<n;i++)
	{
		if(d[i]>0)
		{
			x1[i]=(-b[i]+sqrt(d[i]))/(2*a[i]);
			x2[i]=(-b[i]-sqrt(d[i]))/(2*a[i]);
			printf("x1=%.5f;x2=%.5f\n",x1[i],x2[i]);
		}
		else if(b[i]*b[i]-4*a[i]*c[i]<0)
		{
			x1[i]=(-b[i]/(2*a[i])),y1[i]=sqrt(-d[i])/(2*a[i]);
			x2[i]=(-b[i]/(2*a[i])),y2[i]=-sqrt(-d[i])/(2*a[i]);
			if(b[i]!=0)
			{
				if(a[i]>0)
			    printf("x1=%.5f+%.5fi;x2=%.5f%.5fi\n",x1[i],y1[i],x2[i],y2[i]);
			    else
			    printf("x1=%.5f%.5fi;x2=%.5f+%.5f\n",x1[i],y1[i],x2[i],y2[i]);
			}
			else
			{
				if(a[i]>0)
			    printf("x1=0.00000+%.5fi;x2=0.00000%.5fi\n",y1[i],y2[i]);
			    else if(a[i]<0)
			    printf("x1=0.00000%.5fi;x2=0.00000+%.5fi\n",y1[i],y2[i]);
			}



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

  else if (delta == 0)
  {x1 = (-b[i])/(2*a[i]);
  printf("x1=x2=%.5lf\n",x1);} 
  
  else
  {x_a = (-b[i])/(2*a[i]);
  x_b =  sqrt(-delta)/(2*a[i]);
  if (x_a == -0) 
  {x_a = 0;} 
  printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",x_a,x_b,x_a,x_b);
  } 

  
  }
     
     
}
void main()
{
	int n;
	double a,b,c,x1,x2,d,e;
	scanf("%d\n", &n);
	for(;n>=1;n--)
	{
		 scanf("%lf %lf %lf", &a,&b,&c);
		  if ((sqrt(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 ((sqrt(b*b-4*a*c))==0) 
			{
				x1=-b/(2*a);
				printf("x1=x2=%.5f\n", x1);
			}
		    else
			{
			 d=-b/(2*a);
			 e=sqrt(-(b*b-4*a*c))/(2*a);
			printf("x1=%.5f+%.5fi;x2=%.5f-%.5fi\n", d,e,d,e);

			}
		}
	}
}
int main() 
{double a,b,c,x1,x2,p,q;
int n,j;
char y='i';
scanf("%d",&n);
for(j=1;j<=n;j++)
{scanf("%lf%lf%lf",&a,&b,&c);
if(b*b-4*a*c<0)
{p = b/(-2*a);q= sqrt(-b*b+4*a*c)/(2*a);
 if(p==-0){p=0;}
printf("x1=%.5lf+%.5lf%c;x2=%.5lf-%.5lf%c\n",p,q,y,p,q,y);}
if(b*b-4*a*c==0)
{x1 = (-b + sqrt(b*b-4*a*c))/(2*a);
printf("x1=x2=%.5lf\n",x1);}
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);}
}
return 0; 
}
int main()
{int n,j;
 double a,b,c,x1,x2,t,m,p;
  scanf("%d",&n);
  for(j=1;j<=n;j++)
  { scanf("%lf %lf %lf",&a,&b,&c);	  
  t=b*b-4*a*c;
  m=-b/(2*a);
  if(t>0.0000001)
{ p=sqrt(t)/(2*a);
  x1=m+p;
  x2=m-p;
  printf("x1=%.5lf;x2=%.5lf\n",x1,x2);
  }
 else 
	 if(fabs(t)<=0.0000001)
	 {x1=x2=m;
	 printf("x1=x2=%.5lf\n",x1);
	 }
 else
	 if(t<-0.0000001) 
	 {p=sqrt(-t)/(2*a);
	 printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",m,p,m,p);}
}return 0;
}
int main()
{
	struct pare
	{
		double a;
		double b;
		double c;
	}p1[k];
	int n;
	scanf("%d",&n);
	int i;
	for(i = 0; i < n; i++)
	{
		scanf("%lf%lf%lf",&p1[i].a,&p1[i].b,&p1[i].c);
	}
	double x1,x2;
	double xx,xs;
	for(i = 0; i < n; i++)
	{
		if( (p1[i].b*p1[i].b) - 4 * p1[i].a * p1[i].c > 0)
		{
			x1 = ( -p1[i].b + sqrt ( p1[i].b*p1[i].b - 4 * p1[i].a * p1[i].c ) ) / (2*p1[i].a);
			x2 = ( -p1[i].b - sqrt ( p1[i].b*p1[i].b - 4 * p1[i].a * p1[i].c ) ) / (2*p1[i].a);
			printf("x1=%.5lf;x2=%.5lf\n",x1,x2);
		}
		if( (p1[i].b*p1[i].b) - 4 * p1[i].a * p1[i].c == 0)
		{
			x1 = -p1[i].b / (2*p1[i].a);
			printf("x1=x2=%.5lf\n",x1);
		}
		if( p1[i].b*p1[i].b - 4 * p1[i].a * p1[i].c < 0)
		{
			xs = -p1[i].b  / (2*p1[i].a);
			xx = ( sqrt ( -p1[i].b*p1[i].b + 4 * p1[i].a * p1[i].c ) ) / (2*p1[i].a);
			if ( p1[i].b == 0)
			{
				printf("x1=0.00000+%.5lfi;x2=0.00000-%.5lfi\n",xx,xx);
			}
			else
			{
				printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",xs,xx,xs,xx);
			}
		}
	}
	return 0;
}
main()
{
      float a,b,c,disc;
      double x1,x2,realpart,imagpart;
      int i,n;
      scanf("%d",&n);
      for(i=1;i<=n;i=i+1)
      {
      scanf("%f%f%f",&a,&b,&c);
      disc=b*b-4*a*c;
      if(fabs(disc)<=1e-6)
        printf("x1=x2=%.5f\n",-b/(2*a)+0);
        else
          
          if(disc>1e-6)
          {
          realpart=-b/(2*a)+0;
          imagpart=sqrt(disc)/(2*a);
           x1=realpart+imagpart;
           x2=realpart-imagpart;          
           if(fabs(x1)<=1e-6) 
           printf("x1=%.5f;x2=%.5f\n",fabs(x1),x2);            
            else
            printf("x1=%.5f;x2=%.5f\n",x1,x2);  
          
          }
          else
          {
          realpart=-b/(2*a)+0;
          imagpart=sqrt(-disc)/(2*a);
          printf("x1=%.5f+%.5fi;x2=%.5f-%.5fi\n",realpart,imagpart,realpart,imagpart);
         
          }    
          }   
          }
main()
{
      int n,i;
      i=0;
      double x1,x2;
      scanf("%d",&n);
      float a[n],b[n],c[n];
      double delta,d,e;
      while (i<n)
      {
            scanf("%f %f %f",&a[i],&b[i],&c[i]);
              i++;
      }
      i=0;
      while (i<n)
      {
         delta=(b[i])*(b[i])-4*a[i]*c[i];
         if (delta>0)
         {
                    x1=(-b[i]+sqrt(delta))/(2*a[i]);
                    x2=(-b[i]-sqrt(delta))/(2*a[i]);
                    printf("x1=%.5f;x2=%.5f\n",x1,x2);
         }
         if (delta==0)
         {
                     x1=-b[i]/(2*a[i]);
                     printf("x1=x2=%.5f\n",x1);
         }
         if (delta<0)
         {
                     d=-b[i]/(2*a[i]);
                     e=sqrt(-delta)/(2*a[i]);
                     if (b[i]==0)
                     {
                     printf("x1=%.5f+%.5fi;x2=%.5f-%.5fi\n",-d,e,-d,e);
                     }
                     else
                     {
                     printf("x1=%.5f+%.5fi;x2=%.5f-%.5fi\n",d,e,d,e);  
                     }
         }
         i++;
      }
      getchar();getchar();getchar();getchar();
}
int main()
{
	int n,m;
    float a,b,c;
	double x1,x2,e,f;
      scanf("%d",&n);
	   for(m=1;m<=n;m++)
	   {
          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=(-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/(2*a);
			  if (x2==-0)
			  {
				  printf("x1=x2=0.00000\n");
			  }
			 else
			  printf("x1=x2=%.5lf\n",x1);
		  }
		  else 
		  {
			  e=-b/(2*a);
			  if(e==-0)
			  {
				  e=0;
			  }
			  else
			  {
				  e=e;
			  }
              f=sqrt(4*a*c-b*b)/(2*a);
			  printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",e,f,e,f);
		  }
	   }
	
	
	
	return 0;
}
int main()
{
	int n , i ,k ;
	float a , b , c ;
	double x1 , x2 , xa , ya , yb , yc ;
	cin  >> n ;
	for ( k = 1 ; k <= n ; k++ )
	{
		cin >> a >> b >> c ;
		xa = ( -b ) / ( 2 * a ) ;
		ya = b * b - 4 * a * c ;
		yb = sqrt( ya ) / ( 2 * a ) ;
		yc = sqrt( -ya ) / ( 2 * a ) ;
		x1 = xa + yb ;
        x2 = xa - yb ;
		if ( ya < 0 )
		{
			if ( xa == 0 )
			{
				cout << "x1=" ;
			    printf("%.5f", -xa) ;
			    cout << "+" ;
			    printf("%.5f", yc) ;
			    cout << "i;x2=" ;
                printf("%.5f", -xa) ;
			    cout << "-" ;
			    printf("%.5f", yc) ;
			    cout << "i" << endl ;
			}
			else
			{
				cout << "x1=" ;
		        printf("%.5f", xa) ;
			    cout << "+" ;
		      	printf("%.5f", yc) ;
			    cout << "i;x2=" ;
                printf("%.5f", xa) ;
			    cout << "-" ;
			    printf("%.5f", yc) ;
			    cout << "i" << endl ;
			}
		}
			else
				if ( x1 != x2 )
				{
					cout << "x1=" ; 
					printf("%.5f", x1) ;
					cout << ";x2=" ; 
					printf("%.5f", x2) ;
					cout << endl ;
				}
				else 
				{
					cout << "x1=x2=" ;
					printf("%.5f", x1) ;
					cout << endl ;
				}
	}
	return 0 ;
}
int main()
{
int n,i;
scanf("%d",&n);
double a,b,c,x1,x2,d,e;
for (i=0;i<n;i++)
{
scanf("%lf %lf %lf",&a,&b,&c);
 d=b*b-4*a*c;
 e=(b==0)?0:(-b)/(2*a);

if(d>0){
printf("x1=%.5lf;x2=%.5lf\n",e+sqrt(d)/(2*a),e-sqrt(d)/(2*a));
}
else if(d==0){
printf("x1=x2=%.5lf\n",e);
}
else if(e==0){ 
printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",-e,sqrt(-d)/(2*a),-e,sqrt(-d)/(2*a));
}
else{ 
printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",e,sqrt(-d)/(2*a),e,sqrt(-d)/(2*a));
}
}
return 0;
}
int main ()
{
 int n;
 scanf ("%d",&n);
 double a[100],b[100],c[100],x1[100],x2[100],m[100],w[100];
 int i;
 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 (x1[i]!=x2[i]&&x1[i]!=0&&x2[i]!=0)
		 printf("x1=%.5lf;x2=%.5lf\n",x1[i],x2[i]);
    else if (x1[i]!=x2[i]&&x1[i]==0&&x2[i]!=0)
		 printf("x1=0.00000;x2=%.5lf\n",x2[i]);
    else if (x1[i]!=x2[i]&&x1[i]!=0&&x2[i]==0)
		 printf("x1=%.5lf;x2=0.00000\n",x1[i]);
	 else if (x1[i]==x2[i]&&x1[i]!=0)
		 printf ("x1=x2=%.5lf\n",x1[i]);
	 else if (x1[i]==x2[i]&&x1[i]==0)
		 printf("x1=x2=0.00000\n");
	};
	 }
		 if  ((b[i]*b[i]-4*a[i]*c[i])<0)
		 {
			 m[i]=-b[i]/(2*a[i]);
		     w[i]=sqrt(4*a[i]*c[i]-b[i]*b[i])/(2*a[i]);
		
		printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",m[i],w[i],m[i],w[i]);
			 }
 
 }
 return 0;
}
void main()
{
   double a,b,c,ds,x1,x2;
   int i=1,n;
   scanf("%d",&n);
   for(i=0;i<n;i++)
   {
	 scanf("%lf %lf %lf",&a,&b,&c);
	 ds=b*b-4*a*c;
     if(ds>0)
	 {
      x1=(-b+sqrt(ds))/(2*a);
      x2=(-b-sqrt(ds))/(2*a);
      printf("x1=%.5lf;x2=%.5lf\n",x1,x2);
	 }
     else if (ds==0)
	 {
      x1=(-b)/(2*a);
      printf("x1=x2=%.5lf\n",x1); 
	 } 
     else 
	 {
      x1=(-b)/(2*a);
	  x2=(sqrt(4*a*c-b*b))/(2*a);
      printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",x1,x2,x1,x2);   
	 }
   }
}
int main()
{
	int n,i;
	cin>>n;
	double a[n],b[n],c[n],p,q,x1=0,x2=0;
	for(i=0;i<n;i=i+1)
	{
		cin>>a[i]>>b[i]>>c[i];
	}
	for(i=0;i<n;i=i+1)
	{
		p=(-1)*b[i]/(2*a[i]);
		q=pow(b[i],2)-4*a[i]*c[i];
		if(q==0)
		{
			x1=x2=p;
			if(p>-0.00000001 && p<0.00000001) p=0;
			cout<<fixed<<setprecision(5)<<"x1="<<"x2="<<p<<endl;
		}
			else if(q>0)
				{
				x1=p+sqrt(q)/(2*a[i]);
				x2=p-sqrt(q)/(2*a[i]);
				if (x1>-0.00000001 && x1<0.0000001) x1=0.0000;
				cout<<fixed<<setprecision(5)<<"x1="<<x1<<";"<<"x2="<<x2<<endl;
				}
		if(q<0)
		{
			q=sqrt(-q)/(2*a[i]);
			if(p>-0.00000001 && p<0.00000001) p=0;
			cout<<fixed<<setprecision(5)<<"x1="<<p<<"+"<<q<<"i"<<";"<<"x2="<<p<<"-"<<q<<"i"<<endl;
		}
	}



   return 0;
}
int main()
{
	int i,n,r;
	double a,b,c,x[2000],x1[2000],x2[2000],delta[2000];
	i=1;
	scanf("%d",&n);
	while (i<=n)
	{
		scanf("%lf %lf %lf",&a,&b,&c);
		delta[i]=b*b-4*a*c;
        if (delta[i]>0)
		{
			x1[i]=(-b+sqrt(delta[i]))/(2*a);
			x2[i]=(-b-sqrt(delta[i]))/(2*a);	
		}
		else if (delta[i]==0)
		{
			x1[i]=x2[i]=(-b)/(2*a);		
		}
		else if (delta[i]<0)
		{
			x[i]=-b/(2*a);
			x1[i]=sqrt(-delta[i])/(2*a);
            x2[i]=sqrt(-delta[i])/(2*a);     
		}
		i=i+1;	
	}
	for(r=1;r<=n;r=r+1) 
	{
		if (delta[r]>0) printf("x1=%.5lf;x2=%.5lf\n",x1[r],x2[r]);
		else if (delta[r]==0) printf("x1=x2=%.5lf\n",x1[r]);
		else if (delta[r]<0)
		{
			if (x[r]==0) x[r]=-x[r];
			printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",x[r],x1[r],x[r],x2[r]);
		}
	}
    return 0;
}
int main()
{double a,b,c,d,e,f,x1,x2;
int n,t=0;
cin>>n;
for(t=0;t<n;t++)
{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<<fixed<<setprecision(5)<<"x1="<<x1<<";x2="<<x2<<endl;
}
else if(d==0)
{x1=(-b)/(2*a);
cout<<fixed<<setprecision(5)<<"x1=x2="<<x1<<endl;
}
else
{e=sqrt(-d)/(2*a);
f=(-b)/(2*a);
if(f==0)
f=fabs(f);
cout<<fixed<<setprecision(5)<<"x1="<<f<<"+"<<e<<"i;x2="<<f<<"-"<<e<<"i"<<endl;}
}
return 0;}
//********************************
//*????????????   **
//*?????? 1300012773 **
//*???2013.10.9  **
//********************************
int main()
{
    double a, b, c, delta, x1, x2; //?????????3???abc????delta????x1?x2
    int n; //????n
    cin >> n; //??????
    for(int i = 1; i <= n; i++)
    {
        cin >> a >> b >> c; //?????????????
        delta = b * b - 4 * a * c; //???????
        cout << fixed << setprecision(5); //???????
        if (delta == 0) //???????????????
        {
            x1 = x2 = -b/(2 * a); //??????
            cout << "x1=x2=" << x1 <<endl; //??????
        }
        else
        {
            if(delta > 0) //????????????????
            {
                //????????
                x1 = (-b + sqrt(delta))/(2 * a);
                x2 = (-b - sqrt(delta))/(2 * a);
                cout << "x1=" << x1 << ';' << "x2=" << x2 <<endl; //?????
            }
            else //???????????????
            {
                x1 = x2 = -b /(2 * a); //?????????
                delta = sqrt(-delta)/(2 * a); //????
                if(abs(x1)<1e-6) x1=x2=1e-7; //?????0 ??0.00000???-0.00000
                cout << "x1=" << x1 << '+' << delta << 'i' << ';';
                cout << "x2=" << x2 << '-' << delta << 'i' <<endl; //??????
            }
        }
    }
    return 0;
}
int main()
{
	int n=0,i=0;
	double a=0,b=0,c=0,x1=0,x2=0,k=0,e=0,f=0;
	cin>>n;
	for(i=1;i<=n;i=i+1)
	{
		cin>>a>>b>>c;
		k=b*b-4*a*c;
		if(k>0)
		{
			x1=(-b+sqrt(k))/(2*a);
			x2=(-b-sqrt(k))/(2*a);
			cout<<setprecision(5)<<fixed<<"x1="<<x1<<";"<<"x2="<<x2<<endl;
		}
        else if(k==0)
		{
			x1=(-b)/(2*a);
            cout<<setprecision(5)<<fixed<<"x1=x2="<<x1<<endl;
		}
		else
		{
			e=(-b)/(2*a);
			f=(sqrt(-k))/(2*a);
			if(e==0)
			{
				cout<<setprecision(5)<<fixed<<"x1=0.00000"<<"+"<<f<<"i"
				<<";"<<"x2=0.00000"<<"-"<<f<<"i"<<endl;
			}
			else
			{
				cout<<setprecision(5)<<fixed<<"x1="<<e<<"+"<<f<<"i"
				<<";"<<"x2="<<e<<"-"<<f<<"i"<<endl;
			}

		}
	}
	return 0;
}
int main()
{
	int i,n;
	scanf("%d\n",&n);
	double x1[99],x2[99],a[99],b[99],c[99],disc[99],realpart[99],imagpart[99];
	for(i=0;i<n;i++)
	scanf("%lf %lf %lf",&a[i],&b[i],&c[i]);
	for(i=0;i<n;i++)
	{
		disc[i]=b[i]*b[i]-4*a[i]*c[i];	
		if(disc[i]==0)	printf("x1=x2=%.5lf\n",-b[i]/(2*a[i]));
		else if(disc[i]>0)
			{	
				x1[i]=(-b[i]+sqrt(disc[i]))/(2*a[i]);
				x2[i]=(-b[i]-sqrt(disc[i]))/(2*a[i]);
				printf("x1=%.5lf;x2=%.5lf\n",x1[i],x2[i]);
			}
		else
			{
				realpart[i]=-b[i]/(2*a[i]);
				imagpart[i]=sqrt(-disc[i])/(2*a[i]);
				(b[i]==0)?printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",-realpart[i],imagpart[i],-realpart[i],imagpart[i]):printf("x1=%.5lf+%.5lfi;x2=%.5lf-%.5lfi\n",realpart[i],imagpart[i],realpart[i],imagpart[i]);
			}
	};
	return 0;
}