| 记录编号 | 127076 | 评测结果 | TTTTT | ||
|---|---|---|---|---|---|
| 题目名称 | 92.[NOIP 2001]一元三次方程求解 | 最终得分 | 0 | ||
| 用户昵称 | 是否通过 | 未通过 | |||
| 代码语言 | C++ | 运行时间 | 5.000 s | ||
| 提交时间 | 2014-10-14 20:50:56 | 内存使用 | 0.32 MiB | ||
#include<iostream>
#include<cstdio>
using namespace std;
int main(){
//freopen("3cfc.in","r",stdin);
//freopen("3cfc.out","w",stdout);
int a,b,c,d;
cin>>a,b,c,d;
double x;
for(x=-100.00;x<=100.00;x+=0.01){
if(a*x*x*x+b*x*x+c*x+d==0){
cout<<x<<" ";
}
}
return 0;
}