#44175: 學長 我不想努力了~~~


jaheyhey (最喜歡Ja~~~~的那個高中生)


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

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