超難...
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,x1,x2,d;
cin>>a>>b>>c;
d=b*b-4*a*c; \\一元二次公式
if(d==0){
x1=-b/(2*a);
cout<<"Two same roots x="<<x1<<'\n';
}else if(d>0){
x1=(-b+sqrt(d))/(2*a);
x2=(-b-sqrt(d))/(2*a);
cout<<"Two different roots x1="<<x1<<" , x2="<<x2<<'\n';
}else{
cout<<"No real root"<<'\n';
}
}