#514. 再求 f(x,n)
再求 f(x,n)
Background
Special for beginners, ^_^
Description
已知
$$f(x,n)={x\over{n+{x\over{(n-1)+{x\over{(n-2)+\dots _{x\over 1+x}}}}}}}$$给定 的值,用递归函数求解 。
Format
Input
第一数是 的值,第二个数是 的值。
Output
的值。
Samples
1 2
0.40
Limitation
1s, 1024KiB for each test case.