题目描述
blablabla
样例
#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;
int main()
{
double a,b,c,m;
cin>>a>>b>>c;
if(a==0||b*b-4*a*c<0)
cout<<"Impossivel calcular"<<endl;
else
m=sqrt(b*b-4*a*c);
cout<<"R1 = "<<fixed<<setprecision(5)<<(m-b)/(2*a)<<endl;
cout <<"R2 = "<<fixed<<setprecision(5)<<(m+b)/(2*a)*(-1)<<endl;
}