【例28.2】 求出e的值

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

利用公式 e=1+11!+12!+13!+...+1n!e=1+\frac{1}{1!}+\frac{1}{2!}+\frac{1}{3!}+...+\frac{1}{n!}, 求 ee

输入格式

输入只有一行,该行包含一个整数nn(2n152≤n≤15)。

输出格式

输出只有一行,该行包含计算出来的ee的值,要求打印小数点后 1010 位。

样例

10
2.7182818011

周六1900--循环综合练习

Not Claimed
Status
Done
Problem
63
Open Since
2025-9-13 0:00
Deadline
2025-11-1 23:59
Extension
24 hour(s)