问题2183--就是签到题XD

2183: 就是签到题XD

时间限制: 1 Sec  内存限制: 64 MB
提交: 677  解决: 124
[状态] [讨论版] [提交] [命题人:]
题目描述
In mathematics, we suppose that f(1)=1, f(i)-f(i-1)=1/i, (2<=i<=n)

输入
Input starts with an integer T (≤ 10000), denoting the number of test cases.
Each case starts with a line containing an integer n (2 ≤ n ≤10^7).

输出
For each case, print the case number and the value of f(n). The answer should be rounded to 10 decimal places.

样例输入 Copy
3
2
3
4
样例输出 Copy
Case 1: 1.5000000000
Case 2: 1.8333333333
Case 3: 2.0833333333