#t339. 再求 f(x,n)
再求 f(x,n)
Compute f(x,n)
Problem Background
Special for beginners, ^_^
Problem Description
Given
$$f(x,n)={x\over{n+{x\over{(n-1)+{x\over{(n-2)+\dots _{x\over 1+x}}}}}}}$$Given the values of and , use a recursive function to compute .
Input Format
The first number is the value of , the second is the value of .
Output Format
Output the value of , formatted to two decimal places (e.g. 0.40).
Sample Input
1 2
Sample Output
0.40
Constraints
Time limit: 1s, memory limit: 1024KiB for each test case.