2307 - A easy problem!
Time Limit : 1 秒
Memory Limit : 128 MB
<span style="line-height:1.5;"><span style="font-family:'Microsoft Yahei';font-size:14px;line-height:21px;background-color:#F5F5F5;">Define a function f(n)=(f(n-1)+1)/f(n-2). You already got f(1) and f(2). Now, give you a number m, please find the value of f(m).</span></span>
<br />
Input
There are several test cases. Each case contains three integers indicating f(1), f(2) and m ( 1 <= f(1), f(2), m <110,000,000).
Output
<span style="font-family:'Microsoft Yahei';font-size:14px;line-height:28px;background-color:#F5F5F5;">For each case, please output the value of f(m), rounded to 6 decimal places.</span>
Examples
Input Format
1 1 3 1 2 3 4 8 10
Output Format
2.000000 3.000000 0.625000