#37780: _cpp


a911023@stu.tnssh.tn.edu.tw (mk)


#include <iostream>
#include<cmath>
using namespace std;

int main()
{
  int a,b,c,D;
  while(cin >> a >> b  >> c)
    {
      D = b*b-4*a*c;
      if(D>0)
      {
        cout << "Two different roots x1=" << ((-1*b)+sqrt(b*b-4*a*c))/(2*a) << " , x2=" << ((-1*b)-sqrt(b*b-4*a*c))/(2*a);
      }
      else if(D==0)
      {
        cout << "Two same roots x=" << ((-1*b)+sqrt(b*b-4*a*c))/(2*a);
      }
      else
      {
        cout << "No real root" << endl;
      }
    }
  return 0;
}