#include<bits/stdc++.h>
using namespace std;
int a,b,c,d;
double f(int x)
{
return (a*x*x*x+b*x*x+c*x+d);
}
double sswr(double a)
{
return ((int)a*1000)%10>=5?((int)(a*100+1))/100.0:((int)(a*100))/100.0;
}
int main()
{
double x1,x2,x,s;
scanf("%d %d %d %d",&a,&b,&c,&d);
for(int i=-100;i<=100;i++)
{
x1=i;
x2=i+1;
if(f(x1)*f(x2)<0)
{
x=(x1+x2)/2;
s=sswr(f(x));
while(s!=0)
{
s=sswr(f(x));
if(s<0)
{
x2=x;
x=(x1+x2)/2;
}
else if(s>0)
{
x1=x;
x=(x1+x2)/2;
}
}
printf("%.2f ",x);
}
else if(f(x1)==0)
printf("%.2f ",x1);
}
return 0;
}
第二个和第四个点