45. 1/1! + 2/2! + 3/3! +...

I'm a slow walker, but I never walk backwards.

Task Description
計算1/1! + 2/2! + 3/3! +...

Input Format
輸入一整數n
Output Format
輸出計算1/1! + 2/2! + 3/3! + .... + n/n!的結果,取至小數點第五位
Sample Input

1
5

Sample Output

1
2.70833

Submit

Login

Testdata Set

Download Testdata