#include <iostream>
using namespace std;
void main()
{
double a = 0, b = 0, c = 0;
cout << "a=";
cin >> a;
cout << "b=";
cin >> b;
cout << "c=";
cin >> c;
if (a == 0)
{
if (b == 0)
{
cout << "错误" << endl;
}
else
{
cout << "只有一解";
}
}
else if (b * b - 4 * a * c > 0)
{
cout << "只有两解" << endl;
}
else if (b * b - 4 * a * c == 0)
{
cout << "只有一解" << endl;
}
else if (b * b - 4 * a * c < 0)
{
cout << "无解" << endl;
}
}