Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
136951 韩立鹏 解一元三次方程 C++ 解答错误 66 0 MS 252 KB 218 2024-03-09 16:25:38

Tests(4/6):


#include<bits/stdc++.h> using namespace std; int main() { double a,b,c,d,x; cin>>a>>b>>c>>d; for(x=-100;x<=100;x++){ if(a*x*x*x+b*x*x+c*x+d==0){ printf("%.2lf",x); cout<<" "; } } return 0; }


测评信息: