12 条题解

  • 2
    @ 2024-11-8 13:05:46

    #include<bits/stdc++.h> using namespace std; int main() { double a,b,c,d,x,y; cin>>a>>b>>c; d=sqrt(bb-4ac); x=(-b+d)/(2.00a); y=(-b-d)/(2.00*a); if(x>y) { cout<<fixed<<setprecision(2)<<y<<" "<<x; } else { cout<<fixed<<setprecision(2)<<x<<" "<<y; } return 0; }

    信息

    ID
    20
    时间
    1000ms
    内存
    256MiB
    难度
    7
    标签
    递交数
    338
    已通过
    73
    上传者