热门

最新

红包

立Flag

投票

同城

我的

发布
wdy20111222
空山新雨,月悬山林
3 年前
truewdy20111222

《OpenJudge 1.3-7 计算多项式的值》
题干如下:

总时间限制:

1000ms



内存限制:

65536kB

描述

对于多项式f(x) = ax3 + bx2 + cx + d 和给定的a, b, c, d, x,计算f(x)的值。

输入

输入仅一行,包含5个实数,分别是x,及参数a、b、c、d的值,每个数都是绝对值不超过100的双精度浮点数。数与数之间以一个空格分开。

输出

输出一个实数,即f(x)的值,保留到小数点后7位。

样例输入


2.31 1.2 2 2 3

样例输出


33.0838692

先转换一下:
——来自博客
https://blog.csdn.net/wdy20111222/article/details/123786427

正确率>=60%,那我们直接上代码(单选)
0 人已经参与 已结束
1
0人
2
0人
CSDN App 扫码分享
分享
评论
点赞
  • 复制链接
  • 举报
下一条:
Why do students find mathematics difficult?Because mathematics is difficult indeedly, the deeper you learn it the more difficult it becomes. Only a few people are able to conquer the most difficult mathematical categories.
立即登录