1712: 【CSP基础】计算多项式的值▅

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:9 Solved:7

Description

对于多项式和给定的计算的值,保留到数点后lns="http://www.w3.org/1998/Math/MathML">7位。

Input

输入仅一行,包含lns="http://www.w3.org/1998/Math/MathML">5个实数,分别是,及参数的值,每个数都是绝对值不超过lns="http://www.w3.org/1998/Math/MathML">100的双精度浮点数。数与数之间以一个空格分开。

Output

输出一个实数,即的值,保留到小数点后lns="http://www.w3.org/1998/Math/MathML">7位。

Sample Input Copy

2.31 1.2 2 2 3

Sample Output Copy

33.0838692