#t338. 求 f(x,n)
求 f(x,n)
Evaluate f(x,n)
Problem Background
Special for beginners, ^_^
Problem Description
Given
$$\nf(x,n)=\sqrt{n+\sqrt{(n-1)+\sqrt{(n-2)+\sqrt{\cdots+2+\sqrt{1+x}}}}}\n$$compute for the given and .
Input Format
Input and .
Output Format
The value of the function, kept to two decimal places.
Sample Input
4.2 10
Sample Output
3.68
Constraints
1s, 1024KiB for each test case.