2628: Math Problem - 1
内存限制:32 MB
时间限制:1.000 S
评测方式:文本比较
命题人:
提交:35
解决:1
题目描述
Here has an function:
f(x) = | a*x3 + b*x2 + c*x + d | (L <= x <= R)
Please figure out the maximum result of f(x).
输入
Multiple test cases(less than 100). For each test case, there will be only 1 line contains 6 numbers a, b, c, d, L and R. (-10 <= a,b,c,d <= 10, -100 <= L <= R <= 100)
输出
For each test case, print the answer that was rounded to 2 digits after decimal point in 1 line.
样例输入 复制
1.00 2.00 3.00 4.00 5.00 6.00
样例输出 复制
310.00